function bar(x:*, ...args):* {
args.unshift( x );
foo.apply( <scope>, args );
}
If foou must be bardeclared in the same class , otherwise it must be an instance of the class declaring , and if it is a global function, it must be<scope>thisfoofoonull
foo.apply( this, args );
//-- or --
foo.apply( myFooInstance, args );
//-- or --
foo.apply( null, args );
source
share