lua-users home
lua-l archive

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


thank you :D
I will try it.

2010/4/20 Mike Pall <mikelu-1004@mike.de>
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



--
Takehiro Iyatomi(弥富 豪宏)
mail: iyatomi@gmail.com
twitter: http://twitter.com/umegaya