malloc in core.memory.GC

Alex Rønne Petersen xtzgzorex at gmail.com
Sun Apr 8 15:34:34 PDT 2012


On 08-04-2012 22:05, Andrei Alexandrescu wrote:
> At http://dlang.org/phobos/core_memory.html, the spec for GC.malloc is
>
> static void* malloc(size_t sz, uint ba = 0);
>
> I assume each type has a specific ba. Is there a primitive in
> core.memory to retrieve it?
>
>
> Thanks,
>
> Andrei

Heh, even that is not actually obvious. We really need to fix the GC docs...

-- 
- Alex


More information about the Digitalmars-d mailing list