lua-users home
lua-l archive

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


Alex Queiroz <asandroq@gmail.com> writes:

> Hello,
>
> On Tue, Feb 22, 2011 at 10:29 AM, David Kastrup <dak@gnu.org> wrote:
>>
>> Now Scheme is actually a rather pointless language for actually working
>> with continuations since most of its data _structures_ (like a list) are
>> static and not maintained inside of the call stack/heap.
>>
>
>      Could you please elaborate on this? I don't know what you mean.
> Why is a list in Scheme "static"?

It is passed by reference.  Only the references are actually maintained
in the call stack.  Any changes to the list itself can't be rewound when
rereturning into a continuation.

-- 
David Kastrup