[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: what is the syntax of DOTS?
- From: Mark@... (Mark Ian Barlow)
- Date: Mon, 17 Mar 1997 03:55:03 GMT
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