This is the mail archive of the guile@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How often are continuations created?


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]