On Thursday, 31 January 2013 at 10:58:48 UTC, Peter Alexander wrote:
On Thursday, 31 January 2013 at 08:42:48 UTC, Roumen Roupski wrote:
        finally
        {
                delete m1;
                delete m2;
        }

D has a GC. No need for manual deletion.

(In fact, I think this is deprecated? Or scheduled for removal? Or maybe neither. Who knows).

http://dlang.org/deprecate.html#delete

If you want to do something, then take destroy.
AFAIK delete destroy _and_ release the memory immediately. 'destroy' doesn't.

Reply via email to