lua-users home
lua-l archive

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


On Tue, Dec 22, 2009 at 7:11 PM, Mark Hamburg <mark@grubmah.com> wrote:
>(I'm less fond of the trick of having the __index entry in the metatable point back to the metatable. As far as I can see, all this does is save one table in the system and it does so at the expense of making all of the metamethods available for __index access.)

I see the point (an extra table is nothing here) but why should one
want to prevent the metamethods from being accessed from the object?