lua-users home
lua-l archive

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


On May 11, 2010, at 8:34 PM, J.Jørgen von Bargen wrote:

> works fine and prints 3 (at the cost of creating a temporary table)

For a given definition of 'fine'... try f( '1', nil ) or f( 1, nil, 2, nil ) or ...

To make a long story short, select( '#', ... ) is what you need.