22 lines
266 B
Plaintext
22 lines
266 B
Plaintext
|
|
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
|
|
Arena
|
|
Heap
|
|
|
|
|
|
kind := Allocator_Kind.Heap |