lua-users home
lua-l archive

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


> OATUR, a discussion occured some time ago about the arg parameter and the
> possibility to rename it at will instead of having this predefined name.
> Has this been dropped ? I'd love to have something like that :-)
>
> function myFunc ( var1 , var2 , ... = myTableOfVariadicArguments )

I like the syntax:
    myFunc(var1,var2, ...varRemaining)
with the arg list name being optional (and defaulting to "arg").

Cheers,
Peter Hill.