|
|
||
|
2. yield() across iterators (for x in my_iter() do ...).
And there's a small patch to add just feature #2 to standard Lua: http://lua-users.org/wiki/YieldableForLoops
The primary download site for the patch http://primero.ricilake.net/ seems to be down. Does anyone have an alternative download link?
// Niklas