well theoritcly this can be emulated however... with return of a 0 or something
i think it would be nice though to do something like throw works like return yet if u do this
alias something {
var %error = Some Error Msg
throw %error
}
alias deal {
if (!$something) echo -a ERROR: $error
else echo -a OK: $result
}
The behavior would be as such that when returning via throw the alias is ALWAYS evaluated to false and $error holds the return, so no matter if u throw 0 or $true its always evaluated to false so u can know an error has occured and just incase its not a throw and its like a return 0 $result would also hold what $error had so i suppose $error is just there to make it look pretty but o well, the key is the evaluation to false.