[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 10:03:34 +0200
> 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...)
Oh yes, it never occurred to me, I could just override-replace the
default getmetatable function.