[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: Sun, 11 Sep 2011 16:54:02 +0200
I didn't know that! Could this be added in the reference manual at
"2.8 - Metatables"? 'Cause it isn't mentioned there!
On Sun, Sep 11, 2011 at 4:26 PM, Richter, Jörg <Joerg.Richter@pdv-fs.de> wrote:
>> In Lua you cannot sandbox a metatable away. An offending script still
>> might just call getmetatable.
>
> Then use __metatable:
>
> http://www.lua.org/manual/5.1/manual.html#pdf-getmetatable
>
> Jörg
>
>