#31 Add block-style condition catches to Rexx.

None
open
5
2012-08-22
2005-01-27
No

The USER condition model in Object Rexx would be more
useful if were possible to enable condition traps
within a block without having to reply on SIGNAL or
CALL. Signal has some serious drawbacks, because it
terminates all existing nested control structures. It
would be much easier to use if there were better
localized control. Something modelled on the NetRexx
syntax would be nice.

For example

do forever
line = stream~linein

....

catch notready
-- end of processing
end

is a much simpler means of handling the old
read-until-end-of-file question.

If implemented, it would also be nice to add finally
block processing to these block instructions also.

Discussion


Anonymous

Cancel  Add attachments