lua-users home
lua-l archive

Re: question for lua-COCO implementation

[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

AltStyle によって変換されたページ (->オリジナル) /