Compounds for structs
This commit is contained in:
@@ -62,3 +62,10 @@ thing0 :: 10
|
||||
thing1 :: thing0 + 11
|
||||
thing2 :: thing1 + 20
|
||||
combin :: thing0 + thing1 + thing2
|
||||
|
||||
Some :: struct
|
||||
len: S64
|
||||
cap: S64
|
||||
|
||||
some := Some{3, 2}
|
||||
other := Some{len = 1, cap = 3}
|
||||
Reference in New Issue
Block a user