Prevent Garbage Collector

Jeroen Bollen jbinero at gmail.com
Sat Jan 4 09:36:59 PST 2014


On Saturday, 4 January 2014 at 17:24:24 UTC, Adam D. Ruppe wrote:
> And GC.addRange is in core.memory if you want that.
>
> http://dlang.org/phobos/core_memory.html#addRange

Would that work with structs too?

Struct* i = malloc(Struct.sizeof);
i = &Struct(params);


More information about the Digitalmars-d-learn mailing list