lua-users home
lua-l archive

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


On Sat, Apr 12, 2014 at 3:24 PM, duz <duz@sol-3.de> wrote:
> but likely, nobody would be thrilled if
> metamethods worked subtlety different on different objects.

That's exactly the point.  Then we have to become paranoid and
distrust every index operation.

I second Dirk's suggestion that __call is the do-what-you-like
metamethod where there is a clear "primary" operation on an object.