: Wednesday, February 07, 2007 11:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Returning 'this' from an overridden
method?
Nice to know the name of this feature.
Just lately somebody asked me the same question.
He
2007 11:10 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Returning 'this' from an overridden method?
Nice to know the name of this feature.
Just lately somebody asked me the same question.
He also came from a Java background.
Any chance we will see it in the future?
Nice to know the name of this feature.
Just lately somebody asked me the same question.
He also came from a Java background.
Any chance we will see it in the future?
Cheers,
Ralf.
On 2/7/07, Sho Kuwamoto <[EMAIL PROTECTED]> wrote:
The short answer is that there is no way to do what you want
The short answer is that there is no way to do what you want for the
time being.
What you are looking for is a language feature called "covariant return
types". In certain languages (C++, Java) you can have your subclass
redefine the type that is returned by a method.
This would be a great thi
Hi David,
I to am an AS3 novice. Wrote my first(trivial) action script file about
an hour ago. :)
A couple of ideas. Not sure if they will be of much help to you, but
incase you hadnt considered them already..
. you could return the value returned by the call to super.
ie)
Camera c = sup
- Original Message -
From: "David_Stafford" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, February 07, 2007 2:12 AM
Subject: [flexcoders] Returning 'this' from an overridden method?
> Please pardon this simple-minded question from an AS3 novice.
>
> My base class often returns 'this' from me
6 matches
Mail list logo