lua-users home
lua-l archive

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

2013/11/14 Marc Lepage <>:

> 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.