Ammon:

> if error set/any fred try [print "done"] [print "Error!"]

Can I correct a couple of typos here?

-- Error should be error?
-- The code only works if fred is already defined.

This, I think, works in all cases:

    if error? set/any 'fred try [print "done"] [print "Error!"]

'fred is left undefined or unchanged if there was no error

Compare with the error generating:

    if error? set/any 'fred try [print "done"] [print "Error!"]

fred now contains the error! info, printable with:

    probe disarm fred

Sunanda.
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to