Something like:

 

override function foo(... rest):void

{

            rest[1] = "bar'

            super.foo.apply(this, rest)

}

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of caffeinewabbit
Sent: Thursday, April 03, 2008 8:06 AM
To: [email protected]
Subject: [flexcoders] Overriding a rest parameter

 

I have a method in a parent class that I need to override in a child,
but the parent's version of the method uses a rest (...) parameter as
its only argument.

Since the argument arrives in the overridden class as an array, how do
I then pass that data on to the original method (i.e.
super.function())? Is there any way to indicate that an array should
be treated like a rest parameter?

I've since solved my application specific issue using a different
approach, but I wasn't able to find anything that addressed the
problem above in the Docs, through Google, or here on Flexcoders.

 

Reply via email to