lua-users home
lua-l archive

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


2012/9/16 steve donovan <steve.j.donovan@gmail.com>:
> On Sun, Sep 16, 2012 at 6:26 PM, Fidelis Assis <fidelis.assis@gmail.com> wrote:
>> for _,v in ipairs(<table>) do
>
> In Lua 5.0, 'k,v in t' used to be short for 'k,v in pairs(t)'.  It was
> deprecated because pairs/ipairs makes it absolutely clear what kind of
> table iteration is used.

Thanks, didn't know that, I started using Lua at v5.1. Anyway, I miss
the short "for v in t". With only one var it seems to me the intention
is clear.

-- 
Fidelis Assis