Prevent Garbage Collector

bearophile bearophileHUGS at lycos.com
Sat Jan 4 18:16:59 PST 2014


Adam D. Ruppe:

> but the optimizer might see that the initalization is useless 
> and skip it.

Currently D compilers seem not good at that. In std.array there 
are two functions to allocate arrays that are not or not fully 
initialized to avoid a double initialization.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list