[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Benchmark] Numeric for loop vs. ipairs()
- From: Romulo <romuloab@...>
- Date: Thu, 7 May 2009 09:58:51 -0300
You mean, t[#t] ~= nil and t[#t+1] == nil ?
On Wed, May 6, 2009 at 11:16 PM, Javier Guerra <email@example.com> wrote:
> Duncan Cross wrote:
>> inside the loop - #t is supposed to give you the length of the array
>> part, which is defined as not containing nils anyway.
> #t gives you a number such that t[#t]==nil and t[#t-1] ~= nil ; but that could be any such number. if there's holes in the table, #t could be any of the holes, or the 'length' of the array