[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Metatables are "hard" (Re: Question about __index and classes)
- From: Axel Kittenberger <axkibe@...>
- Date: Mon, 12 Sep 2011 11:52:20 +0200
Indeed, but for user normal guy it may be easier to read if it would
be mentioned there. I for one didn't know cause I supposed all keys
listed there is all implemented in Lua (core and default libs)
On Sun, Sep 11, 2011 at 9:37 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> > 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.
>
>