[Top][All Lists]

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

Re: [Chicken-users] Continuations

From: John Cowan
Subject: Re: [Chicken-users] Continuations
Date: Sat, 16 Jul 2016 22:19:58 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

Josh Barrett scripsit:

> This seems to imply that the state of variables in the scope the
> continuation was captured are restored with the continuation, but the state
> of variables in scopes higher up the stack are not. But that doesn't sound
> right. If the continuation is copying the entire stack, than every single
> lexical variable would have its state restored when the continuation was
> restored, all the way up to toplevel.

Sorry, you're right and I was wrong, of course.  However, truly global
variables are not affected by restoring a captured continuation.

John Cowan        address@hidden
LEAR: Dost thou call me fool, boy?
FOOL: All thy other titles thou hast given away:
That thou wast born with.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]