[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: a for loop with my coroutine claims to yield across a c-call boundary
- From: Sam Roberts <sroberts@...>
- Date: Mon, 7 May 2007 15:39:41 -0700
On Tue, May 08, 2007 at 08:10:55AM +1000, David Burgess wrote:
> Its the iterator.
> 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. :-(