[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: __index returns truncated to one, why?
- From: steve donovan <steve.j.donovan@...>
- Date: Sat, 12 Apr 2014 16:24:44 +0200
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.
- References:
- __index returns truncated to one, why?, duz
- Re: __index returns truncated to one, why?, Peng Zhicheng
- Re: __index returns truncated to one, why?, Dirk Laurie
- Re: __index returns truncated to one, why?, duz
- Re: __index returns truncated to one, why?, Dirk Laurie
- Re: __index returns truncated to one, why?, duz
- Re: __index returns truncated to one, why?, Dirk Laurie
- Re: __index returns truncated to one, why?, duz