Re: [Scheme-reports] 6.1 Exceptions needs examples
Andy Wingo 22 Mar 2012 13:27 UTC
On Thu 22 Mar 2012 09:24, Helmut Eller <eller.helmut@gmail.com> writes:
> * leppie [2012-03-22 05:14] writes:
>
>>> However, IronScheme ... all return (a b c d), for whatever reason.
>>
>> That is the best you can do with escape continuations only.
>
> You could use the sequence (a c d b) i.e. evaluate the test of the cond
> clause in the dynamic environment of raise and unwind the stack only
> when the test returns true. That's arguably "better" as this will call
> other handlers in the correct environment if the test returns #f.
MHO is that this is the correct thing for r7rs to specify.
Andy
--
http://wingolog.org/
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports