Re: Protect __metatable, which value?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Protect __metatable, which value?
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2013年11月14日 06:33:18 +0200
2013年11月14日 Marc Lepage <mlepage@antimeta.com>:
> If I want to protect a metatable with an opaque value, by setting its
> __metatable field to non-nil, which is the best value to use?
A common idiom is to use a string that contains the name
of the class of objects that have that particular metatable.