Mem Mgmt: With & Without the GC

Cauterite via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 21 09:42:30 PDT 2016


On Sunday, 21 August 2016 at 16:14:53 UTC, Zane wrote:
> 6) If the GC is off, how is allocation/deallocation handled? 
> Can I still use new for example (and how do I dealloc)?

All the allocation/deallocation functionality is the same as 
normal, except the GC won't start a collection cycle unless it's 
out of memory.

You can still use `free()` to deallocate, and it will free memory 
straight away.


More information about the Digitalmars-d-learn mailing list