Defining a custom *constructor* (not initializer!)

Mehrdad wfunction at hotmail.com
Mon May 14 01:10:57 PDT 2012


On Monday, 14 May 2012 at 07:26:27 UTC, Jacob Carlborg wrote:
> You always call "display.dispose" at the end of the main 
> function. Since "dispose" will dispose all of the receiver's 
> children and "display" is the top level widget, everything will 
> be disposed when the application exits.

*sigh* I just spent a few posts explaining why you need to clean
things up in the destructor, and then I get a reply telling me to
just manage resources manually, screw automatic garbage
collection. >_<


More information about the Digitalmars-d mailing list