lua-users home
lua-l archive

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


Looking at parser.c I spotted the symbol DOTS ('...'). I guessed it was a
valid function parameter, and sure enough:

function foo(x,...) print(x) end   foo("bar")

was accepted, but (assuming the obvious) how do I access the parameter list
within the body of foo()? Should I be doing this at all or is it a legacy
from an earlier version, or maybe an internal reserved feature?

--  Mark Ian Barlow                Non-Linear Control Consultants Ltd.
    -----------------------------------------------------------------
    Mark@nlcc.demon.co.uk            Voice / Fax: +44 (0)1207 562 154