lua-users home
lua-l archive

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


On Thursday 02 March 2006 16:33, Adam D. Moss wrote:
[...]
> I guess something like this is what's wanted:

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).

-- 
+- David Given --McQ-+ "Of course, on a sufficiently small planet, 40
|  dg@cowlark.com    | km/hr is, in fact, sufficient to punt the elastic
| (dg@tao-group.com) | spherical cow into low orbit." --- Brooks Moses on
+- www.cowlark.com --+ r.a.sf.c

Attachment: pgp5c89uppMvK.pgp
Description: PGP signature