Right now, what's the most important for the success and adoption of D?

Janice Caron caron800 at googlemail.com
Sun Sep 30 00:31:31 PDT 2007


On 9/30/07, Patrick Kreft <patrick_kreft at gmx.net> wrote:
> Somewhat is confusing me, why D call my destructor if i never delete it o.O

There is no guarantee that the destructor will /ever/ be called - not
even when your program exits!

For example, if you have static/global data which happens by accident
to look like it might be a pointer to an object on the heap, then the
destructor for that object will not be called - ever.



More information about the Digitalmars-d mailing list