Subj : Re: Using 'apply' to construct an object To : netscape.public.mozilla.jseng From : franck Date : Tue Aug 30 2005 07:12 pm In fact, I want to create an object ( new myClass... ) with a variable argument list ( ...apply( xxx, myListOfArguments ) ) An alternative way to achieve this is : new myClass( args[0], args[1], args[2], args[3], args[4], ... args[n] ); But the constructor of the object I am trying to create failed if I provide more than the expected number of arguments. myClass is a native JSClass class ( wxDialog(Parent, Id, Title [, Position, Size, Style]) ) Franck. .