On Thursday, 21 January 2016 at 21:54:36 UTC, Dibyendu Majumdar wrote:
Is there a way to disable GC in D?
I am aware of the @nogc qualifier but I would like to completely disable GC for the whole app/library.

Regards
Dibyendu

GC.disable();

This prevents the garbage collector from running but your program will still allocate using the GC's managed memory (use the command line switch -vgc to see all the allocation points). It will just never free memory.

Reply via email to