[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] 6.1 Exceptions needs examples
On Wed 21 Mar 2012 04:28, John Cowan <cowan@x> writes:
> On a call to either `raise` or `raise-continuable` the stack is popped.
> If it's a procedure object, apply it to the condition object passed.
> If that returns, either re-raise or return to the caller as the case
> may be. But if the object on the stack was a marker, wrap the condition
> object in a Java RuntimeException and throw it. A `guard` expression is
> compiled into a try-catch structure, so it will intercept it. Likewise,
> `with-exception-handler` catches any RuntimeException and invokes the
> thunk on it.
If there are two handlers installed, and the inner one was installed by
"guard" and does not handle the object that was passed to 'raise', does
this strategy still allow the second handler to be invoked from the
continuation of the throw?
Scheme-reports mailing list