[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (beta) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 25 Oct 2014 13:44:04 -0200
> Can section 4.7 (" Handling Yields in C") of the manual explicitly say
> that lua_callk / lua_pcallk will return instead of calling the
> continuation if the called function doesn't yield?
>
> Being used to CPS[0], I assumed that the continuation function is always
> called, so seeing " return k(L, lua_pcallk(L, n, m, h, ctx2, k), ctx1);"
> in the example confused me.
>
> After reading the [1] thread I understand why that's the case, but it
> would be nice if the manual made the behavior more obvious.
Fair enough. (This is more like "conditional CPS"...)
-- Roberto