Files
ground_fork/tests/struct.grnd

28 lines
391 B
Plaintext
Raw Normal View History

2025-09-20 15:17:22 +10:00
struct -point
init &xpos -int
init &ypos -int
fun -void !init -int &x -int &y
set &xpos $x
set &ypos $y
return
endfun
fun -string !toString
# do stuff
return "placeholder"
endfun
fun -int !dingle
return 23
endfun
endstruct
init &myPoint -point
2025-09-20 17:44:50 +10:00
println $myPoint.xpos
2025-09-20 15:17:22 +10:00
!myPoint.dingle &out
println $myPoint