Re: Metatables are "hard" (Re: Question about __index and classes)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Metatables are "hard" (Re: Question about __index and classes)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2011年9月11日 16:37:58 -0300
> > 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.