Files
ground_fork/tests/functions.grnd

15 lines
261 B
Plaintext
Raw Normal View History

2025-08-13 09:40:03 +10:00
fun -int !dingle -string &silly
2025-08-18 09:36:35 +10:00
stdlnout "This is inside the function"
2025-08-22 13:52:26 +10:00
stdout "The function argument is "
stdlnout $silly
2025-08-13 09:40:03 +10:00
return 10
endfun
stdlnout "This is outside the function"
2025-08-18 09:36:35 +10:00
2025-08-22 13:52:26 +10:00
pusharg "heheheha"
2025-08-18 09:36:35 +10:00
call !dingle &var
2025-08-22 13:52:26 +10:00
stdout "Function returned "
2025-08-18 09:36:35 +10:00
stdlnout $var