RE: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Sho Kuwamoto
: 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

RE: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Gordon Smith
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?

Re: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Ralf Bokelberg
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

RE: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Sho Kuwamoto
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

Re: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread shaun
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

Re: [flexcoders] Returning 'this' from an overridden method?

2007-02-07 Thread Paul Andrews
- 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