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:

> Keisuke Nishida <kxn30@po.cwru.edu> writes:
> 
> > Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
> > 
> > > >   01234guile> (some-cont #f)
> > > >   01234guile> 
> > > > 
> > > > Which one is the correct behavior?
> > > 
> > > Miroslav is right.
> > > Guile is wrong.
> > 
> > Really?
> 
> No, just kidding.
> 
> Miroslav and Mikael are wrong.
> Guile is right.
> 

(let ((i 0))
  (do ((v (make-vector 5 #f)))
      ((= i 5))
    (vector-set! v i (magic-computation i))
    (display i)
    (set! i (1+ i))))

This should work as the counterexample, then?

-- 
How to eff the ineffable?

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