forked from ground/ground
Function arguments, start of scoping
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
fun -int !dingle -string &silly
|
||||
stdlnout "This is inside the function"
|
||||
stdout "The function argument is "
|
||||
stdlnout $silly
|
||||
return 10
|
||||
endfun
|
||||
|
||||
stdlnout "This is outside the function"
|
||||
|
||||
pusharg "heheheha"
|
||||
call !dingle &var
|
||||
|
||||
stdout "Function returned "
|
||||
stdlnout $var
|
||||
|
Reference in New Issue
Block a user