lua-users home
lua-l archive

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


Are you sure that this applies to coroutines?
It sounds really odd to me, a coroutine may be a complex function with
several nested loops in it; i would need to add a "CanRun()" condition to
every single nested loop (or a "if not CanRun() then return" kind of thing
inside every single loop) and keep calling the coroutine until the resume
fails before being able of collecting the table that contains the reference
to that coroutine...

it doesn't really seem like a nice approach, am i missing something?



--
View this message in context: http://lua.2524044.n2.nabble.com/coroutines-local-userdata-and-GC-tp7664107p7664128.html
Sent from the Lua-l mailing list archive at Nabble.com.