# Possible bug

Pavel Curtis (pavel@parc.xerox.com)
Wed, 27 Mar 1996 09:43:27 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    Ron Stanions writes:
    > I haven't looked in the source but I would guess this is because raise() acts
    > like return in the sense that all it does is return an error datatype, and
    > isn't a direct error, with or without the debug flag raised.  It doesn't
    > actually pass through the normal error handling operations.

    This is not true.  Raising an error is very different from returning it; the
    latter operation *never* triggers the error-catching constructs `...' and
    try...except...endtry.

    The expression (raise(E_DIV)) raises that error in *precisely* the same way
    that (1/0) does.

    	Pavel