Hi Stefan,
Stefan Israelsson Tampe skribis:
> (define f (lambda (n) (if (= n 0) (fluid-ref a) (with-fluids ((a n)) (f (-
> n 1))
>
> with the modified VM:
> scheme@(guile-user)> (f 1000)
> $2 = 1
>
> with the old VM, it craches. It works!
Hmm, I can’t see how ‘with-fluids’ or ‘parameter
I think with-fluids could at least be semi-tail-recursive. If you imagine a
normal non-tail-recursive implementation, you might get to a point where
your continuation is going to set a fluid back to a value, and then the
*next* continuation is going to set that fluid back to *another* value.
Since