mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-07 19:14:19 +00:00
Change casting syntax: cast(T)x transmute(T)x et al.
This commit is contained in:
@@ -9,14 +9,8 @@
|
||||
#import "sync.odin";
|
||||
#import "utf8.odin";
|
||||
|
||||
T :: struct { x, y: int };
|
||||
thread_local t: T;
|
||||
|
||||
main :: proc() {
|
||||
immutable using t := T{123, 321};
|
||||
fmt.println(t);
|
||||
|
||||
|
||||
// foo :: proc(x: ^i32) -> (int, int) {
|
||||
// fmt.println("^int");
|
||||
// return 123, int(x^);
|
||||
|
||||
Reference in New Issue
Block a user