WE CAN RETURN VALUES FROM FUNCTIONS LESS GOOO
This commit is contained in:
11
test2.grnd
11
test2.grnd
@@ -1,10 +1,7 @@
|
||||
fun -string !test
|
||||
fun -int !test
|
||||
stdout "this was called by a function!!!!\n"
|
||||
return
|
||||
return 123
|
||||
endfun
|
||||
|
||||
call !test
|
||||
set &x 2
|
||||
set &y 3
|
||||
add $x $y &x
|
||||
end $x
|
||||
call !test &var
|
||||
end $var
|
Reference in New Issue
Block a user