lua-users home
lua-l archive

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

> But: is there any way to tell if a coroutine returned returned due to a
> yield, or due to a "return"? (I mean a generalized way, that doesn't depend
> on the function "return"ing a special value.)

No. (Although you can find out the next time you try to resume it.)
Maybe we will add something like "coroutine.status" that tells whether
a coroutine is still active, but we are still waiting for "realistic

-- Roberto