[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (work1) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 15 Jan 2010 14:23:23 -0200
> >From a programmer point of view, #t defined as max(k) for k>=1 and
> t[k]~=nil (or 0 if no such k exists) makes the most sense to me. [...]
>
> The main reason for me to use ipairs was that it behaved as max(k)
> above. [...]
I think it does not. Maybe you meant
max(k) such that for all i in [1..k], t[i] ~= nil?
-- Roberto
- References:
- Re: [ANN] Lua 5.2.0 (work1) now available, Alexander Gladysh
- Re: [ANN] Lua 5.2.0 (work1) now available, Alexander Gladysh
- Re: [ANN] Lua 5.2.0 (work1) now available, Alexander Gladysh
- Re: [ANN] Lua 5.2.0 (work1) now available, Ignacio Burgueño
- Re: [ANN] Lua 5.2.0 (work1) now available, steve donovan
- Re: [ANN] Lua 5.2.0 (work1) now available, Alexander Gladysh
- Re: [ANN] Lua 5.2.0 (work1) now available, Klaus Ripke
- Re: [ANN] Lua 5.2.0 (work1) now available, Doug Rogers
- Re: [ANN] Lua 5.2.0 (work1) now available, Roberto Ierusalimschy
- Re: [ANN] Lua 5.2.0 (work1) now available, T T