lua-users home
lua-l archive

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


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