lua-users home
lua-l archive

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


> 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