[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: New varargs
- From: Mark Hamburg <mhamburg@...>
- Date: Thu, 01 Jul 2004 17:02:02 -0700
I agree that both of those would be useful. Capturing varargs on assignment
is particularly interesting for the results of a pcall if you want to pass
the results on up the chain.
Mark
on 7/1/04 4:56 PM, Edgar Toernig at froese@gmx.de wrote:
> local start, end, ... = string.find(str, somepattern)
> print("captures", ...)
> print("i have", argn(...), "varargs")