This is the mail archive of the
guile@sources.redhat.com
mailing list for the Guile project.
Re: How often are continuations created?
Miroslav Silovic <silovic@zesoi.fer.hr> writes:
> (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?
Yes, but, again, this problem is more related to `set!' than to `do'.
A simpler example is:
(let ((i 0))
(vector-set! v i (magic-computation i))
(display i)
(set! i (1+ i)))