Re:A Field Guide to Lua Coroutines
by silentbicycle on Monday July 01, 2013 @02:56PM
(#5972810)
Thanks. :) I'm still mostly using Lua 5.1.4 most of the time, and I forgot to include that.
There is also a modification patch for Lua 5.1 called Cocos that fixes this. It was written by Mike Pall, better known as the author of LuaJIT.
http://coco.luajit.org
Re:A Field Guide to Lua Coroutines
by silentbicycle on Saturday July 06, 2013 @01:44AM
(#5998097)
I saw a patch he wrote for copying coroutines, for those who miss multi-shot continuations.
Lua 5.2 provides a mechanism to help with this: http://www.lua.org/manual/5.2/manual.html#4.7