[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: __index returns truncated to one, why?
- From: Tim Hill <drtimhill@...>
- Date: Thu, 10 Apr 2014 00:50:14 -0700
On Apr 10, 2014, at 12:45 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 2014-04-10 9:06 GMT+02:00 duz <duz@sol-3.de>:
>
>> Please do not truncate the results returned from __index to 1!
>
> I'll support that, for now, until somone demonstrates the unpleasant
> side effects this might have.
>
local a,b = tracker[1]
Seems ok to me, but i’d be worried about:
foo(tracker[1])
Passing extra values into a function unexpectedly.
—Tim