[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LuaJIT: is Coco a requirement?
- From: Mike Pall <mikelu-0710@...>
- Date: Thu, 25 Oct 2007 21:13:10 +0200
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