lua-users home
lua-l archive

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


On Tue, May 08, 2007 at 08:10:55AM +1000, David Burgess wrote:
> Its the iterator.

Thanks, David.

> See Coco http://luajit.luaforge.net/coco.html
> 
> for a description of what you cannot do with Lua coroutines

OK, most of that list I understand, particularly any library
functions that are likely implemented in C, like table.foreach.

But for loops are a part of the syntax of lua, I thought. Not being able
to yield from it is a bit like not being able to yield through a
conditional or a while loop. :-(

Sam