[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] 4.2.7. Exception Handling



On Wed, 18 May 2011 04:32:58 -0400, Andy Wingo <wingo@x> 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@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports