[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Metatables are "hard" (Re: Question about __index and classes)
- From: HyperHacker <hyperhacker@...>
- Date: Sun, 11 Sep 2011 01:51:20 -0600
On Sun, Sep 11, 2011 at 01:49, Axel Kittenberger <email@example.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.