[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Delimited continuations
From: |
Michael Heerdegen |
Subject: |
Re: Delimited continuations |
Date: |
Tue, 12 Dec 2017 15:27:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
"John Wiegley" <address@hidden> writes:
> HM> (+ 1 2) is executed twice. I think this isn't necessarily so?
>
> Yes, except if you think about it, this "initial evaluation" whose
> results are thrown away can be used to establish lexical bindings to
> be captured by the lambda passed to shift; or to influence which shift
> is used within a complicated reset block.
This can be done in the "first run". I think it's the "second run" that
is "too much" because it doesn't belong to the limited continuation of
the context of `shift'.
Michael.