Accessing constant values in structs

This commit is contained in:
Krzosa Karol
2022-05-31 13:27:21 +02:00
parent 437a776d78
commit 1168965ba4
4 changed files with 64 additions and 15 deletions

View File

@@ -2,9 +2,16 @@
Thing :: struct
len: int
Constant :: 10
Thing_Kind :: enum
None
Thing_Not
thing: Thing
access := thing.len
test := Thing.Thing_Kind.Thing_Not
test_const := Thing.Constant
Allocator_Kind :: enum
Null