'% filename "t.exe"
'uses rtl64
function f()
int a=42
int b
'gosub g
gosub g when a>0
print b
return
'
g:
b=a/2
ret
'
end function
f
Doesn't look worthwile.
I'm almost sure that's kind of an (almost) unnoticed side effect left over from the early stages of syntax experimentation; a transition from gosub to genuine subprocedures. Used to have some such in FBSL BASIC myself. :D
I'm keeping gosub because (when used internally) all the caller's local/static variables remain visible. I really missed it in FreeBasic.
Code: Script BASIC
MODULE Class ....