forked from ground/ground
25 lines
372 B
Plaintext
25 lines
372 B
Plaintext
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
|
|
|
|
set &myPoint.xpos 20
|
|
println $myPoint.xpos
|