passing an unknown # of arguments to a function?

Andrew Kohlsmith <[email protected]>
Newsgroups gmane.comp.java.xwt.general
Organization Benshaw Canada
Message-ID <[email protected]>
I thought I could get away with using the arguments array, but apparently not.  
:-(

func1 = function() { xwt.recursivePrintObject(arguments); func2(arguments); }
func2 = function() { xwt.recursivePrintObject(arguments); }

I call func1 as func1("abc", 1234, "1234");

On the output, all I see is

mytemplate: <object>
mytemplate: <object>

I tried declaring them as function(arguments) but got the same type of output.  
If I put a println to see the arguments.length, that is correct (3) in 
func1() but wrong (1) in func2.

Is this possible?  How?

Regards,
Andrew

_______________________________________________
http://lists.xwt.org/listinfo/dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.