Leopold Toetsch <[EMAIL PROTECTED]> writes: > Piers Cawley wrote: > >> Steve Fink <[EMAIL PROTECTED]> writes: >> >>>... I didn't follow about how that interferes with tail-call >>>optimization. (To me, "tail call optimization" == "replace recursive >>>call with a goto to the end of the function preamble") >>> >> Um... no. tail call optimization implies being able to replace *any* >> tail call, not just a recursive one with a simple goto. Consider the >> following calling sequence: > > >> b(arg) -> Push Continuation A onto the continuation chain > > > Continuations are different anyway. They store the context of the > parent at the point they were created, and on invoke they swap context.
But the 'return target' of the current subroutine can be thought of as a continuation. It often makes sense to do so. -- Piers