[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to determine true size of a table?
- From: Lisa Parratt <lisa@...>
- Date: Thu, 02 Mar 2006 16:51:42 +0000
David Given wrote:
You could replace the ipairs look with simply #t (or table.getn(t) on 5.0),
although that will only work for valid arrays (i.e. tables with non-nil
numeric elements from 1 to n).
Isn't the whole point of the code to detect the size of a table when
that's *not* the case?
Personally, I think this is a *massive* hole in Lua.
--
Lisa