lua-users home
lua-l archive

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


Hi,

Jerome Vuarand wrote:
> >    2. yield() across iterators (for x in my_iter() do ...).
> 
> 2 would be really nice, but iirc (correct me if that's wrong) it's not
> supported in pure Lua. That means that people using that feature
> (directly or indirectly) would be forced to use a JIT-ed Lua.

Coco is there to stay as a patchset for the standard Lua core,
even if I don't use it in LuaJIT 2.x anymore.

And there's a small patch to add just feature #2 to standard Lua:
  http://lua-users.org/wiki/YieldableForLoops

Bye,
     Mike