Re: [Scheme-reports] 6.1 Exceptions needs examples Helmut Eller (21 Mar 2012 06:51 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples Aaron W. Hsu (21 Mar 2012 19:46 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples John Cowan (21 Mar 2012 20:12 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples Helmut Eller (22 Mar 2012 08:27 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples Andy Wingo (22 Mar 2012 13:28 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples John Cowan (22 Mar 2012 14:17 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples Helmut Eller (22 Mar 2012 16:36 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples Aaron W. Hsu (22 Mar 2012 17:10 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples Helmut Eller (22 Mar 2012 18:09 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples Andy Wingo (22 Mar 2012 18:22 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples John Cowan (22 Mar 2012 23:30 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples Helmut Eller (23 Mar 2012 06:11 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples John Cowan (23 Mar 2012 06:22 UTC)
Re: [Scheme-reports] 6.1 Exceptions needs examples Helmut Eller (21 Mar 2012 22:40 UTC)

Re: [Scheme-reports] 6.1 Exceptions needs examples Helmut Eller 21 Mar 2012 22:40 UTC

* Aaron W. Hsu [2012-03-21 19:45] writes:

> I can share my thoughts on this one...
>
> On Wed, 2012-03-21 at 07:49 +0100, Helmut Eller wrote:
>> (let ((events '()))
>>    (guard (c
>>            (#t #f))
>>      (guard (c
>>              ((dynamic-wind
>>                   (lambda () (set! events (cons 'c events)))
>>                   (lambda () #f)
>>                   (lambda () (set! events (cons 'd events))))
>>               #f))
>>        (dynamic-wind
>>            (lambda () (set! events (cons 'a events)))
>>            (lambda () (raise 'error))
>>            (lambda () (set! events (cons 'b events))))))
>>    (reverse events))
>
> Let's keep in mind the text of the standard, which should match that of
> R6RS for this case, and therefore, we can test any Scheme implementation
> claiming to conform to R6RS to see if we get what we expect.
[...]
> This gives '(a b c d a b) as the only valid result.

Thanks, for clearing this up.  That was also my interpretation of R6RS.
I'd like to note, that this example requires full continuations since a
and b occur two times in the event trace

Helmut

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports