lua-users home
lua-l archive

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


On Thursday 23 February 2006 18:54, PA wrote:
[...]
>          return 1, nil, 2, nil, 3
[...]
> local someResults = { test() }
> print( unpack( someResults, 1, table.maxn( someResults ) ) )

Yes, but it'll lose any trailing nils...

-- 
+- David Given --McQ-+ 
|  dg@cowlark.com    | C:\DOS, C:\DOS\RUN, RUN\DOS\RUN
| (dg@tao-group.com) | 
+- www.cowlark.com --+ 

Attachment: pgpVRDLpoGwJ5.pgp
Description: PGP signature