mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-01 17:51:48 -07:00
Add #soa pointer type to aid with refactoring to #soa data types
a: #soa[16]Foo p := &a[6] #assert(type_of(p) == #soa^#soa[16]Foo) p^.x = 123 p.x = 123
This commit is contained in:
+2
-1
@@ -650,7 +650,8 @@ AST_KIND(_TypeBegin, "", bool) \
|
||||
}) \
|
||||
AST_KIND(PointerType, "pointer type", struct { \
|
||||
Token token; \
|
||||
Ast *type; \
|
||||
Ast *type; \
|
||||
Ast *tag; \
|
||||
}) \
|
||||
AST_KIND(RelativeType, "relative type", struct { \
|
||||
Ast *tag; \
|
||||
|
||||
Reference in New Issue
Block a user