[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: passing vararg to xpcall?
- From: David Given <dg@...>
- Date: Thu, 23 Feb 2006 19:12:17 +0000
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:
pgpndYPckA1Gw.pgp
Description: PGP signature