lua-users home
lua-l archive

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


On 23/10/2009, at 6:02 PM, David Manura wrote:
On Thu, Oct 22, 2009 at 9:29 PM, Geoff Leyland wrote:
These objects can certainly be 'tostring'ed, but o:__tostring() and
o.__tostring(o) won't work, they'll just get remembered.

If I understand correctly, your __index could could keys prefixed by "__".


I think you meant "could ignore"? Yep, that'd work, but wouldn't that be creating yet another namespace?