I had a look at the idea back in 2007 - in UniBasic and SB+.
http://mvdbs.com/2007/08/01/try-and-catch/ and
http://mvdbs.com/2007/08/16/try-and-catch-part-2/ .

SB+ was easier as RTN.FLAG is used throughout the system and can quite
easily be used as the exception catch.

Within UniBasic, there is already @SYSTEM.RETURN.CODE and @USER.RETURN.CODE.
@SYSTEM.RETURN.CODE is currently used by a number of statements e.g.
PERFORM; so it should be possible to just extend upon that.

It really would be a nice feature to be added. Anyone here a paid-up member
to the Rocket U2 club and can put a word in?

Cheers,

djm


Symeon Breen wrote:
> 
> A try/catch/exception concept in unibasic would be great.
> 
> However to do it properly would probably require a fair bit of effort
> inside
> u2, as they would have to start exposing exceptions to the language e.g.
> 
> 


-----

Learn and Do
Excel and Share


http://mvdbs.com http://mvdbs.com 
-- 
View this message in context: 
http://old.nabble.com/Does-UV-have-a-%22BLOCK%22-command-tp30867376p30872606.html
Sent from the U2 - Users mailing list archive at Nabble.com.

_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to