lua-users home
lua-l archive

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


2012/9/16 Petite Abeille <petite.abeille@gmail.com>:
>
> On Sep 16, 2012, at 7:59 PM, Fidelis Assis <fidelis.assis@gmail.com> wrote:
>
>> With only one var it seems to me the intention
>> is clear.
>
> Well, no, it's not clear: should it be iterated with pairs (map) or ipairs (list)?

There's no order associated with pairs, so I think the reasonable one
would be ipairs (array like tables). Of course, different minds,
different expectations. Anyway, it would be valid for "for _,v in
ipairs()" only.

-- 
Fidelis Assis