[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Passing arguments to a chunk?
- From: Daniel Silverstone <dsilvers@...>
- Date: Wed, 28 May 2014 16:31:29 +0100
On Wed, May 28, 2014 at 17:23:08 +0200, Marc Balmer wrote:
> Am 28.05.2014 um 12:52 schrieb Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>
> >> local args = ...
> >
> > This only gets the first argument.
> > To get them all, so that you can loop over them, use
> > local arg={...}
> >
>
> So
>
> a, b, c = ...
>
> will not work for pcall(script, 1, 3, 3) ?
It should do.
Just imagine that a chunk is wrappered in function(...) end
D.
--
Daniel Silverstone http://www.digital-scurf.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69