[racket] Problem with macro

From: Harry Spier (vasishtha.spier at gmail.com)
Date: Sun Sep 2 02:43:39 EDT 2012

Thanks Danny,

Its obvious now that you point it out.

On Sun, Sep 2, 2012 at 12:27 AM, Danny Yoo <dyoo at hashcollision.org> wrote:
>> (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.