At 11:31 AM +0200 6/10/02, Jerome Vouillon wrote:
>On Sun, Jun 09, 2002 at 05:18:31PM -0400, Dan Sugalski wrote:
>> Who says we're only using callcc to capture continuations? We can do
>> it anywhere, so we potentially need the registers stored so we can
>> properly restore state when we're invoked.
>
>I don't understand what you mean. In scheme, callcc capture the
>current continuation and apply it to a function. If our callcc does
>not capture the current continuation, what does it do?
callcc will call a sub and pass in the current continuation, yes.
However, we're not limiting the continuation capture point to spots
where we callcc. We can capture a continuation anywhere, hence the
need to capture the registers at the time we capture the
continuation, since we won't be at a point where the register
contents are declared volatile.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk