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.

Reply via email to