Core: More robust '.' access
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
/*@language_refactor: Remove tuples and simplify, Make var unpacking general*/
|
||||
|
||||
/*@language_todo: make polymorphism checking more robust*/
|
||||
@@ -25,24 +22,6 @@ thing := 1
|
||||
|
||||
:goto_block: for
|
||||
|
||||
@reproduction:
|
||||
This kills the compiler due to referencing slice data
|
||||
|
||||
Array :: struct($T: Type)
|
||||
slice: []T
|
||||
cap: S64
|
||||
|
||||
Guy :: struct
|
||||
pos: Vector2
|
||||
|
||||
Add :: (a: *Array($T), item: T)
|
||||
if a.cap == 0
|
||||
a.cap = 16
|
||||
a.slice.data = malloc(sizeof(T) * a.cap)
|
||||
a.slice.data[a.slice.len++] = item
|
||||
|
||||
guys: Array(Guy)
|
||||
Add(&guys, {100, 100})
|
||||
*/
|
||||
|
||||
#import "raylib.core"
|
||||
|
||||
Reference in New Issue
Block a user