dev-2023-07
版本发布时间: 2023-07-08 18:20:47
odin-lang/Odin最新发布版本:dev-2024-09(2024-09-02 23:33:25)
New Language Features
- Allowing for Positional and Named Arguments in Procedure Calls details
-
#reverse for
- Allow
for &e, i in array
andfor k, &v in map
andswitch &v in ...
- Will replace the old style of passing the iterable by pointer
- The
&e
value will still be of the same type but will be addressable (a reference to the actual value)- Variable Addressing Mode (L-Value in C-speak)
Compiler Improvements
-
intrinsics.type_merge
-
ODIN_COMPILE_TIMESTAMP
(unix timestamp in nanoseconds) - Default to
panic
allocator for wasm targets - Numerous Fixes
New Packages
- New and Improved
io.Stream
interface - details -
core:math/cmplx
- Font texture atlas builder port of fontstash was added to
vendor:fontstash
- Vectorized rendering port of nanovg was added to
vendor:nanovg
Package Improvements
- Add
math.sincos
- Update to Botan 3.0
- Use C calling convention within most Objective-C related procedures in
vendor:darwin
packages - Add loads of
@(require_results)
to many procedures withincore
- Make the vast majority of
math
procedures"contextless"
- Add
Mutex
tomem.Tracking_Allocator
-
bindFramebuffer
was added toWebGL
package - Added
self_cleanup
flag to properly auto-clean threads - Correct printing in
core:fmt
forODIN_ERROR_POS_STYLE
- General Fixes
1、 odin-macos-amd64-dev-2023-07.zip 37.16MB
2、 odin-ubuntu-amd64-dev-2023-07.zip 62.02MB
3、 odin-windows-amd64-dev-2023-07.zip 57.59MB