Add struct field access

This commit is contained in:
2026-01-21 18:41:24 +11:00
parent a3ca979133
commit b289448f56
5 changed files with 92 additions and 2 deletions

17
tests/struct.grnd Normal file
View File

@@ -0,0 +1,17 @@
struct -point
init &x -int
init &y -int
endstruct
init &mypoint -point
setfield &mypoint &x 53
setfield &mypoint &y 32
getfield $mypoint &x &value
println $value
getfield $mypoint &y &value
println $value