Manual memory management in D2

Petr janda.petr at gmail.com
Sun Jul 11 20:03:06 PDT 2010


Ok, so I now know how to explicitly free memory allocated to the GC heap. Now the question is, should we have the usual C* c = new C(), and I wanted to allocate it to unmanaged memory(just like it would in C++) and then at some
point call the destructor on it and free the memory, outside of the GC. How would I do that?

Thanks for all your replies and suggestions,
Petr


More information about the Digitalmars-d mailing list