lua-users home
lua-l archive

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


takehiro iyatomi wrote:
> 2010/4/19 Mike Pall <mikelu-1004@mike.de>
> because my framework needs to yield lua execution inside metamethod to
> provide similar feature like lua-RPC(http://q12.org/lua/index.html) but more
> asynchronous. if there is way to yield inside metamethod and less memory
> overhead,  I should use it. but currently (as long as my investigation) I
> need to rely on lua+coco patch.

Both LuaJIT and Lua 5.2 allow you to yield from a metamethod.
Lua 5.1 doesn't.

--Mike