lua-users home
lua-l archive

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


On Wed, Sep 24, 2014 at 2:07 PM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
> On Wed, Sep 24, 2014 at 3:58 PM, Coda Highland <chighland@gmail.com> wrote:
>> The "yield" statement in a coroutine creates a
>> continuation
>
> it's a specific case of continuation, i think it's referred to as
> "single shot continuations" in some old paper (by some Roberto guy...)

Yes, yield is a specific case, just as exceptions are a specific case
and setjmp/longjmp is a specific case. We'd have to go to something
like Scheme to get generalized continuations.

/s/ Adam