[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: is "__metatable" an event similar to "__gc" and "__tostring" or is it a convention?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 07 Jul 2003 10:13:31 -0300
__metatable is for protecting metatables. If you do not want a program
to change the contents of a metatable, you set its __metatable field.
With that, the program cannot access the metatable (and therefore cannot