Skip to content

Odin v0.1.1

Compare
Choose a tag to compare
@gingerBill gingerBill released this 24 Feb 19:56
· 12873 commits to master since this release

Added

  • Entities and record fields prefixed with an underscore do not get exported on imports
  • Records have an implicit names fields, a []string of all the names for that record (struct/raw_union/enum)
  • New built-in procedures
    • slice_to_bytes - convert any slice to a slice of bytes
    • delete - remove an entry from a map
    • clear - clear the contents of a map or dynamic array (e.g. set the count to zero)
    • reserve - reserve memory for the dynamic map or array
  • union_cast allows for an optional "ok" check; will panic if the cast is invalid and the ok check was not used
  • ?: ternary operator (replaces block and if expressions)
  • Unions with variants and common fields

Changed

  • Core library additions to Windows specific stuff

Fixes

  • Overloading bug due to comparison of named types
  • Overloading bug due to #import . collision
  • Disallow a cast from a pointer of a union (use union_cast instead)
  • Minor bugs in generated IR code for slices