Skip to content

Odin v0.0.4

Compare
Choose a tag to compare
@gingerBill gingerBill released this 09 Dec 16:40
· 12868 commits to master since this release

What's New

  • Go/BCPL style semicolon insertion rules - See: https://groups.google.com/forum/#!topic/golang-nuts/XuMrWI0Q8uk
  • odin build_dll Build project as .dll
  • #export for procedures
  • Always require an entry point procedure - main
  • Cyclic Type Checking
  • #include - renamed from #load
  • Changed import/include name syntax
    • #import thing "some_file.odin"
  • Built in string constants
    • ODIN_OS - target operating system ("windows")
    • ODIN_ARCH - target architecture ("amd64)
    • ODIN_VENDER - compiler vender ("odin")
    • ODIN_VERSION ("0.0.4")
    • ODIN_ROOT - root directory of the executable
  • when statement
    • Compile time if statement (only allowed within procedures)
  • when condition on #import, #include, #foreign_library #foreign_system_library
    • #import "win32.odin" when ODIN_OS == "windows"
  • Standard Library (WIP):
    • atomic.odin
    • sync.odin (Mutex, Semaphore)
  • Disabled u128 and i128 until big numbers are properly supported