Re: [Scheme-reports] 4.2.7. Exception Handling
Andy Wingo 20 May 2011 17:16 UTC
On Fri 20 May 2011 19:00, "Aaron W. Hsu" <arcfide@sacrideo.us> writes:
> On Fri, 20 May 2011 05:12:34 -0400, Andy Wingo <wingo@pobox.com> wrote:
>
>> Here is an implementation of `guard' which does evaluate the predicates
>> in the raise handler, the bodies with the continuation of the `guard',
>> and re-raises from within `raise', but without rewinding.
>
> If you do not re-establish the continuation of the raise, then you affect
> the intended behavior of the enclosing exception handlers. Consider the
> following:
I didn't re-establish the continuation because I never left it until a
test succeeded. Did you notice the double parentheses around the
call/cc ?
Andy
--
http://wingolog.org/
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports