[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: getmetatable(cdata) return string 'ffi', why not a table
- From: Benoit Germain <bnt.germain@...>
- Date: Sat, 11 Jun 2011 15:39:17 +0200
2011/6/11 Matthew Wild <email@example.com>:
> Although I've never seen a string used before, boolean 'false' is
> often used just to hide/protect a metatable.
I frequently use a string that acts as the 'type' of the object at the
same time as I protect the metatable against unwarranted access.
That way I don't have to store this type somewhere else.