Skip to content

Releases: odin-lang/Odin

Odin v0.0.3d

28 Nov 22:27
Compare
Choose a tag to compare

What's New

  • Rune literal syntax
    • Now: 'x', was: #rune "x"
  • Add global string constants (for later platform specific use)
    • ODIN_OS (e.g. "windows")
    • ODIN_ARCH (e.g. "amd64")
    • ODIN_VENDOR (e.g. "odin")
    • ODIN_VERSION (e.g. "v0.0.3d")
    • ODIN_ENDIAN (e.g. "little")
  • clamp builtin procedure (works on numerical and string types)

Bug fixes

  • Fix slice expressions for arrays and slices
  • fmt.odin correctly prints f32
  • Fix Vector's type information

Linux and OSX

Coming Soon™

Enjoy!

Odin v0.0.3c

23 Nov 15:01
Compare
Choose a tag to compare

What's New

  • Rewritten in C99 (from C++)
  • nil - Zero value for all types, except:
    • integers
    • floats
    • strings
    • booleans
  • Maybe types (nillable types)
    • m: ?int; ...; i, ok := m?;
  • match type for any
  • union_cast
    • x, ok := var union_cast Foo.Bar
  • Backend and stability improvements

Bug fixes

  • #import "..." as . will not act like #load and keep imported entities local to that file
  • Initialize global memory at compile time if possible
  • Fix enums with duplicate entries crash
  • Remove some duplicate error messages

Linux and OSX

Coming Soon™

Enjoy!