lua-users home
lua-l archive

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


> E.g.:
>
> t = { n = select( '#', ... ), ... }
>
> f( unpack( t, 1, t.n ) )
>
> And full symmetry was achieved.
>
> This is even more important if some of your arguments could legitimately be nils, e.g.:
>
> f( 'foo', nil, 'bar', nil )

That n is exactly what I would've scrapped. That, and the
differentiation between an argument not given and a nil one,
especially since select('#',...) is the only one surfacing it.