Manual memory management in D2

Vladimir Panteleev vladimir at thecybershadow.net
Sun Jul 11 02:00:13 PDT 2010


On Sun, 11 Jul 2010 11:45:12 +0300, Simen kjaeraas  
<simen.kjaras at gmail.com> wrote:

> There is also GC.malloc, which does basically the same. It has some bells
> on it, but I know not for sure what they do.

GC.malloc will allocate managed memory (it will be unallocated when the GC  
will not see any references to it).
To allocate unmanaged memory, use malloc from core.stdc.stdlib.

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d mailing list