[racket] Problem with macro

From: Danny Yoo (dyoo at hashcollision.org)
Date: Sun Sep 2 00:27:43 EDT 2012

> (let/set-prompt prompt-3 ()
>                 (+ 1000
>                    (abort-to-prompt p 0)
>                    2000))
>
> ==>
>
> (call-with-continuation-prompt
>  (let () (λ ()
>            +
>            1000
>            (abort-to-prompt p 0)
>            2000))
>  prompt-3)
>
>
>
> And whoops!  That's where we're getting the funky values back: the use
> of + just got ripped apart by the macro, by accident.  We popped its
> bubble, and the components just spilled out into the body of the let.


Doh.  Typo.  I meant to say: "... and the components just spilled out
into the body of the λ".  Sorry about the confusion!


Posted on the users mailing list.