Prevent Garbage Collector
Adam D. Ruppe
destructionator at gmail.com
Sat Jan 4 18:22:11 PST 2014
On Sunday, 5 January 2014 at 02:17:00 UTC, bearophile wrote:
> 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.
Oh cool, I forgot to check std.array.
Here's the link:
http://dlang.org/phobos/std_array.html#uninitializedArray
Using that would surely be better than doing it yourself with
GC.malloc.
More information about the Digitalmars-d-learn
mailing list