lua-users home
lua-l archive

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


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
>
>