functions basically work now, but they're extremely inneficient
This commit is contained in:
19
test2.grnd
19
test2.grnd
@@ -1,14 +1,9 @@
|
||||
fun -string !idk
|
||||
set &var "test of returning strings INSIDE a variable!\n"
|
||||
return $var
|
||||
fun -int !add -int &a -int &b
|
||||
add $a $b &a
|
||||
return $a
|
||||
endfun
|
||||
|
||||
fun -int !function2
|
||||
set &intvar 123
|
||||
return $intvar
|
||||
endfun
|
||||
|
||||
call !idk &var
|
||||
stdout $var
|
||||
call !function2 &lol
|
||||
end $lol
|
||||
pusharg 1
|
||||
pusharg 4
|
||||
call !add &result
|
||||
end $result
|
Reference in New Issue
Block a user