[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Continuations



>>>>> "Steve" == Steve Dekorte <steve@dekorte.com> writes:

Steve> Are exceptions and coroutines sufficient to get those advantages?

No.

Steve> The problem I see with continuations is that they don't play nice with
Steve> C. If you exit a C stack, some heap allocations referenced by the
Steve> stack may be released and a second exit from a copy of the stack may
Steve> contain dangling pointers. So AFAICS, continuations only work if you
Steve> don't call back into the VM from C.

That's, as it stands, incorrect.  There are limitations, to be sure,
but not quite so severe.  The Scheme 48 C FFI, for example, shows how
to make this work for many instances.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla