Hello Mike,
just found a (small) bug in the documentation of NetRexx:
in the section "Exception and error handling" in the
quick start, the following code is shown:
say 'Please enter a number:'
number=ask
do
say 'The reciprocal of' number 'is:' 1/number
catch Exception
say 'Sorry, could not divide "'number'" into 1'
say 'Please try again.'
end
It does not compile, as "the exception is not signalled...".
For a rookie (one of our employees learning NetRexx at the
moment), this a kinda confusing...
It should better be "catch RuntimeException".
Reading through the docs I found nothing about this thing;
though I know it since at least 2.00 version...
Patric
PGP Public Key Fingerprint: 2636 F26E F523 7D62 4377 D206 7C68 06BB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>