[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: New varargs
- From: Ben Sunshine-Hill <sneftel@...>
- Date: Thu, 1 Jul 2004 22:34:18 -0700
Of course, what that really is, is a prelude to tuples as first-class
types. Perhaps we should reevaluate the relation between tables and
tuples?
On Thu, 01 Jul 2004 17:02:02 -0700, Mark Hamburg <mhamburg@adobe.com> wrote:
>
> 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")
>
>