lua-users home
lua-l archive

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


2011/6/11 Matthew Wild <mwild1@gmail.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.


-- 
Benoit.