Jeff Clites <[EMAIL PROTECTED]> wrote:
> On Nov 11, 2004, at 12:59 PM, Leopold Toetsch wrote:

>> As Dan already has outlined a Continuation doesn't have any impact on
>> tail calls (my argument WRT that was wrong)

> I'm confused then. What from the previous discussion in this thread was
> incorrect?

We are just using the continuation, the sub got from the caller, pass
this on to the newly called sub. So if it's valid that this
(ret)continuation were used in the first place it's as valid in the
called sub.

And the tail-called sub executes in the same frame, where the tailcall
is done. Again the validity of that frame doesn't change in the
presence of any captured frames.

Creating a real continuation somewhere only means that this register
frame may be used later, so it has to persist during the life-time of
this Continuation object, that's all.

> JEff

leo

Reply via email to