lua-users home
lua-l archive

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


On Sun, Sep 11, 2011 at 01:49, Axel Kittenberger <axkibe@gmail.com> wrote:
>> It makes all of your metatable entries readable
>
> In Lua you cannot sandbox a metatable away. An offending script still
> might just call getmetatable.
>
>

Isn't that what __metatable is for? (Or don't give it access to
getmetatable(), or at least give it a wrapper that refuses to work on
your objects, if you need that for some reason...)

-- 
Sent from my toaster.