lua-coronest icon indicating copy to clipboard operation
lua-coronest copied to clipboard

Improved compatibility with old coroutines

Open ghost opened this issue 9 years ago • 2 comments

It checks if debug or getfenv are avaliable, and uses them to create a new "coroutine" table inside coroutines upon coroutine creation. Thus, coroutines created inside coroutines won't yield to where "coroutine" table was created. Also added 'optional' depth limit (not really optional, but defaults to math.huge, which is infinite when Lua is compiled with floating point, which is how it is on most popular hardware.)

ghost avatar Oct 02 '16 11:10 ghost

Thanks, can you please explain me the goal of your patch, and what it fixes?

saucisson avatar Oct 02 '16 11:10 saucisson

Sorry, i have some urgent work. I will come back to discuss your patches in a few days.

saucisson avatar Oct 03 '16 19:10 saucisson