Re: Lua 5.1 / 5.2 threads
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua 5.1 / 5.2 threads
- From: Drake Wilson <drake@...>
- Date: 2011年4月27日 16:42:51 -0700
Quoth Anthony Howe <achowe+lua@snert.com>, on 2011年04月27日 17:28:52 +0200:
> So if I change the metatable of a master state then all future
> lua_State, master or thread, will share the same metatable?
Not the former, unless I'm horribly mistaken. An independently-opened
lua_State is (in) its own universe; setting metatables in one universe
never affects another universe.
---> Drake Wilson