Odin » Forums » Odin v0.7
gingerBill
Ginger Bill
217 posts
2 projects

I am ginger thus have no soul.

#13556 Odin v0.7
5 months ago

https://github.com/gingerBill/Odin/releases/tag/v0.7.1

New Features
  • New importation system
  • Import collections
  • Improved `foreign` system
  • Global variable dependency initialization ordering
  • Attribute system
  • Array Programming - arithmetic on fixed length arrays
  • `uintptr`
  • Type aliases
  • `inline` and `no_inline` prefix keywords for procedure literals
  • Procedure calling convention syntax
  • Default arguments allowed after a variadic parameter
  • Polymorphic array lengths

Syntax Changes

  • `switch` replaces `match`
  • `context <- expr {}` replaces `push_context expr {}`
  • `push_allocator` has been removed in favour of general procedures to generate contexts
  • `-build-mode=dll` replaces `build-dll`

Core library additions

  • `mem.ptr_to_bytes`
  • `assert` and `panic` use `printf` style parameters