Quick int pointer allocation question

bearophile bearophileHUGS at lycos.com
Fri Sep 14 11:15:04 PDT 2012


monarch_dodra:

> I'm allocating an array of 500_000 ulongs, and afterwards, I'm 
> initializing them all "by hand", making the default allocation 
> useless.

In std.array there are two functions to avoid a double 
initialization, mostly to be used for nonreference data.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list