1
0
forked from ground/ground-old
This repository has been archived on 2026-03-16. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ground_old_fork/tests/struct.grnd

30 lines
425 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
pusharg 43 32
init &myPoint -point
set &myPoint.xpos 17
set &myPoint.ypos 23
!myPoint.dingle &out
println $myPoint