MyGit

dev-2024-04

odin-lang/Odin

版本发布时间: 2024-04-09 00:04:01

odin-lang/Odin最新发布版本:dev-2024-09(2024-09-02 23:33:25)

New Language Features

Foo :: bit_field u16 { // backing type must be an integer or array of integers
    x: i32     | 3, // signed integers will be signed extended on use
    y: u16     | 2 + 3, // general expressions
    z: My_Enum | foo.SOME_CONSTANT, // ability to define the bit-width elsewhere
    w: bool    | foo.SOME_CONSTANT > 10 ? 2 : 1,
}
Handle :: bit_field u32 {
    slot:       u32  | 16,
    generation: u32  | 15,
    in_use:     bool |  1,
}

Compiler Improvements

New Packages

Package Improvements

CI Improvements

Full Changelog: https://github.com/odin-lang/Odin/compare/dev-2024-03...dev-2024-04

相关地址:原始地址 下载(tar) 下载(zip)

1、 odin-macos-amd64-dev-2024-04.zip 86.69MB

2、 odin-macos-arm64-dev-2024-04.zip 84.48MB

3、 odin-ubuntu-amd64-dev-2024-04.zip 68.47MB

4、 odin-windows-amd64-dev-2024-04.zip 114.6MB

查看:2024-04-09发行的版本