Hi,
Can someone tell me if the language imposes any restrictions on the
maximum number of arguments that can be passed via a function call?
Thanks,
Ashok
IMHO passing that many arguments to a function is an invitation to disaster.
My most serious and hard-to-locate bugs, in programs I wrote in the 1960's-80's
(until I learned not to) came from getting arguments out of order, etc.
Admittedly, with stronger type checking it is less likely to go un-noticed,
but one can still have out of order args of the same type without triggering
any warnings. Better to use arrays, structs, or similar abstractions when
a function needs lots of inputs.
--
Julian V. Noble
Professor Emeritus of Physics
(e-mail address removed)
^^^^^^^^^^^^^^^^^^
http://galileo.phys.virginia.edu/~jvn/
"As democracy is perfected, the office of president represents, more and
more closely, the inner soul of the people. On some great and glorious
day the plain folks of the land will reach their heart's desire at last
and the White House will be adorned by a downright moron."
--- H. L. Mencken (1880 - 1956)