This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: How often are continuations created?
- To: djurfeldt at nada dot kth dot se
- Subject: Re: How often are continuations created?
- From: Keisuke Nishida <kxn30 at po dot cwru dot edu>
- Date: 12 Aug 2000 23:21:11 -0400
- Cc: Radey Shouman <Radey_Shouman at splashtech dot com>, guile at sourceware dot cygnus dot com
- References: <m13NmsE-001mHjC@docupress.com> <xy7vgx5yipo.fsf@mdj.nada.kth.se>
Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
> > Guile's behavior is mandated by R5RS, see the section "Iteration"
> > under "Derived Expression Types". Each DO iteration must create new
> > bindings, not mutate existing bindings.
> >
> > See also the R5RS DEFINE-SYNTAX exemplary definition of DO in the
> > "Formal Syntax and Semantics" section -- there DO expands to a LETREC
> > binding a function which is tail-called for each iteration.
>
> Sorry, and thank.
>
> I just assumed that bindings should be mutated instead of reading the
> document. Shame on me.
Is set! the only syntax that mutates bindings? I'll fix the compiler
so that all set!'ed variables are exported as external variables.