[racket] begin and let/cc

From: Jos Koot (jos.koot at telefonica.net)
Date: Fri Oct 14 18:25:31 EDT 2011

As far as I know, begin is the only form being spliced. Not only at top
level, but also within bodies of procedures and let-like forms. Racket
specialists may tell you more about it. You may want to visit the following


From: nicolas.oury at gmail.com [mailto:nicolas.oury at gmail.com] 
Sent: viernes, 14 de octubre de 2011 23:17
To: Jos Koot
Cc: users at racket-lang.org
Subject: Re: [racket] begin and let/cc

Thank you so much. That clarifies it. 
Is there a list of forms that splice into their context?

On Fri, Oct 14, 2011 at 9:27 PM, Jos Koot <jos.koot at telefonica.net> wrote:

In addition to my previous mail:put the code in the definitions window of
DrRacket and use the macro stepper to see how the code is expanded.


From: users-bounces at racket-lang.org [mailto:users-bounces at racket-lang.org]
On Behalf Of nicolas.oury at gmail.com
Sent: viernes, 14 de octubre de 2011 21:40
To: users at racket-lang.org
Subject: [racket] begin and let/cc

Dear all,

I don't understand this behaviour:

> (define k #f)
> (begin (let/cc out (set! k out)) 5)
> (k #f)
> (let () (let/cc out (set! k out)) 5)
> (k #f)

Does begin something special regarding continuation?

Best regards,


Sent from an IBM Model M, 15 August 1989.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20111015/b8a99fff/attachment.html>

Posted on the users mailing list.