How to allocate an element of type T with value x in generic code?

Andrej Mitrovic andrej.mitrovich at gmail.com
Wed Apr 3 09:12:47 PDT 2013


On 4/3/13, John Colvin <john.loughran.colvin at gmail.com> wrote:
> note: this is not C malloc, the memory is requested from and
> managed by the GC.

Shouldn't that call be GC.malloc? I don't see a module-scoped malloc
function anywhere except the C one in core.stdc.stdlib.


More information about the Digitalmars-d-learn mailing list