Odin
Odin copied to clipboard
Odin Programming Language
## Context ```f# Enum :: enum { a, } main :: proc() { switch Enum { case .a: } } ``` Odin: dev-2024-10:7989d512a OS: Windows 11 Professional (version: 23H2), build...
### Hardware and Software 2024-09-02 Odin Master Repo (release build) Windows 11 and Linux (wsl) AMD and Intel Build and Run commands both fail ### Symptoms: best seen by running...
Switching over an inline array doesn't work without parantheses. It would be nice to have a suggestion for the case one forgets adding them. ```odin package suggestion main :: proc()...
## Context Odin: dev-2024-10:8006ba919 OS: Windows 10 Professional N (version: 22H2), build 19045.5011 CPU: Intel(R) Core(TM) i5-7600K CPU @ 3.80GHz RAM: 16317 MiB Backend: LLVM 18.1.8 ### Steps to Reproduce...
``` f1 :: proc ( text : string ) {} f2 :: proc ( text : string, other:="" ) {} f_all :: proc {f1,f2} f_all( text="test" ) // Parameter 'text'...
This PR has a whole bunch of changes to `core:encoding/json` which I wanted for a long time, as well as a number of bugfixes I found along the way. Changes:...
## Context ``` Odin: dev-2024-10:8006ba919 OS: Manjaro Linux, Linux 6.1.106-1-MANJARO CPU: 12th Gen Intel(R) Core(TM) i7-1260P RAM: 31806 MiB Backend: LLVM 14.0.6 ``` ## Expected Behavior This should work, since...
Hi there! I am playing with Odin and I love it! Other languages like Zig and C, C++ have a concept of LTO. Zig advertises this to be an automatic...
## Context The following code crashes runs into this assertion: ``` D:\Odin\src\llvm_backend_const.cpp(879): Assertion Failure: `elem_count == type->Array.count` 4 != 2 ``` ```odin package test_segment_circle import rl "vendor:raylib" import "core:fmt" Foo...
repro below - compiles and runs repro: ```go package repro main :: proc() { ptr := &vm_page_mask fmt.println(vm_page_mask) ptr^ -= 1 fmt.println(vm_page_mask) } foreign import mach "system:System.framework" foreign mach {...