Manual memory management in D2
bearophile
bearophileHUGS at lycos.com
Sun Jul 11 14:00:46 PDT 2010
Vladimir Panteleev:
> Can someone please explain to me how this is different and *better* than
> the allegedly now-deprecated delete statement?
A std lib function is not set in stone, later it can be improved, modified, etc.
> Also, what happens if the object instance was allocated on the stack?
I think the GC can tell apart pointers that point to the stack memory and pointers to the GC heap.
Bye,
bearophile
More information about the Digitalmars-d
mailing list