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