Open GWRon opened 2 years ago
Pointers to structs are legible:
SuperStrict
Framework Brl.StandardIO
Struct STest
Field X:Int
End Struct
Local s:STest
Local sP:STest Ptr = varptr s
sP.X = 20
print s.X
so it should be valid for "varptr self" (inside of a struct) too.
lets bcc spit out:
Compile Error: Subexpression for 'Varptr' must be a variable or an element of an array, pointer or string
.So how to return a "reference" (pointer) of a struct?
"idea" is to enable structs to daisy chain methods: