Water Cooler v2 wrote on 18 apr 2006 in comp.lang.javas cript:
Thanks, Evertjan. So, internally, functions are objects, just like in
python. Cool.
Objects? I do not think you should conclude this out of my words.
...name would smell just as sweet (or, something like that; from Romeo
& Juliet, right?). Thanks!
Please quote what you are replying to. This is not email but usenet.
If you want to post a followup via groups.google.c om, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers. <http://www.safalra.com/special/googlegroupsrep ly/>
It seems that sum.arguments is outdated and just arguments works fine.
=============== ===============
However jscript 5.6 specs shows this:
function ArgTest(a, b){
var numargs = arguments.lengt h; //Get number of arguments passed.
var expargs = ArgTest.length; //Get number of arguments expected.
[.....]
.... introducing ArgTest.length as the length of the specified/expected
arguments, new to me!
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)