[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Google Summer of Code 2011
- From: David Kastrup <dak@...>
- Date: Tue, 22 Feb 2011 14:36:07 +0100
Alex Queiroz <email@example.com> writes:
> On Tue, Feb 22, 2011 at 10:29 AM, David Kastrup <firstname.lastname@example.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.