[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Multiple values returned or vararg expression in numeric for loop
- From: Fidelis Assis <fidelis.assis@...>
- Date: Sun, 16 Sep 2012 14:59:12 -0300
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
- References:
- Multiple values returned or vararg expression in numeric for loop, Egor Skriptunoff
- Re: Multiple values returned or vararg expression in numeric for loop, Michal Kolodziejczyk
- Re: Multiple values returned or vararg expression in numeric for loop, Roberto Ierusalimschy
- Re: Multiple values returned or vararg expression in numeric for loop, Dimitris Papavasiliou
- Re: Multiple values returned or vararg expression in numeric for loop, Luiz Henrique de Figueiredo
- Re: Multiple values returned or vararg expression in numeric for loop, Dimitris Papavasiliou
- Re: Multiple values returned or vararg expression in numeric for loop, Roberto Ierusalimschy
- Re: Multiple values returned or vararg expression in numeric for loop, Egor Skriptunoff
- Re: Multiple values returned or vararg expression in numeric for loop, Fidelis Assis
- Re: Multiple values returned or vararg expression in numeric for loop, steve donovan