diff options
Diffstat (limited to 'code')
| -rw-r--r-- | code/demo.odin | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/code/demo.odin b/code/demo.odin index 29a96fbb9..9a4d522cc 100644 --- a/code/demo.odin +++ b/code/demo.odin @@ -1,5 +1,15 @@ #import "fmt.odin" main :: proc() { + Vec3 :: struct { + x, y: i16 + z: ?i32 + } + a := [..]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} + offset: u8 = 2 + ptr := ^a[4] + + + fmt.println((ptr+offset) - ptr) } |