Re: Assignment to this.

Daniel Bonniot <[email protected]> Thu, 07 Jul 2005 22:48:50 +0200
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
I think what you want will be covered by overloaded constructors. They are 
mentioned in the wiki. Basically, the idea is to allow the definition of 
methods that are called like a constructor. But they are normal methods, and 
so might do something else, like return an existing instance, null (provided 
the type allows it), ... It's especially useful when you discover you need 
this behaviour but you don't want to change the API for clients.

Daniel


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar