Closed FilipToth closed 3 years ago
function main() { // global statements print("Hello World!") }
or in script mode:
function $eval() : any { return 2 + 3 // global statements }
please note that comments are not supported yet...
Now, you can do this in the REPL (or in script mode)
return 2 + 3
Return statements are now supported in the global scope since that is getting lowered to an $eval function anyway.
$eval
Lowering global statements
or in script mode:
please note that comments are not supported yet...
Global return statements
Now, you can do this in the REPL (or in script mode)
Return statements are now supported in the global scope since that is getting lowered to an
$eval
function anyway.