[Scheme-reports] 4.2.7. Exception Handling Andy Wingo (18 May 2011 08:35 UTC)
Re: [Scheme-reports] 4.2.7. Exception Handling Alaric Snell-Pym (18 May 2011 10:19 UTC)
Re: [Scheme-reports] 4.2.7. Exception Handling Aaron W. Hsu (20 May 2011 03:32 UTC)

Re: [Scheme-reports] 4.2.7. Exception Handling Aaron W. Hsu 20 May 2011 03:31 UTC

On Wed, 18 May 2011 04:32:58 -0400, Andy Wingo <wingo@pobox.com> wrote:

> Here's a program:

>   (define p (make-parameter 0))
>    (define f
>      (lambda ()
>        (guard (e ((p)))
>          (parameterize ((p (+ (p) 1)))
>            (raise #t)))))

> What should `(f)' evaluate to, 0 or 1?

It should return 0.

	Aaron W. Hsu

--
Programming is just another word for the lost art of thinking.

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