lua-users home
lua-l archive

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


On 13 May 2012 02:22, Mark Hamburg <mhamburg.ml@gmail.com> wrote:
> [*] This is a "fun" piece of code to write if you want to leave coroutines working for other cases. You basically need to patch resume and yield to recognize and pass magic cookies to decide how far up the resume chain to yield.

I've done something like that; see https://gist.github.com/1384850