lua-users home
lua-l archive

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


> > Then use __metatable:
>
> I didn't know that! Could this be added in the reference manual at
> "2.8 - Metatables"? 'Cause it isn't mentioned there!

To be fair, __metatable is actually a feature of the base library, that is,
something that is supported by getmetatable and setmetatable but not by the
Lua core.