any way to initialize an array of structs to void?
Meta via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Sep 16 07:57:47 PDT 2015
On Wednesday, 16 September 2015 at 14:51:51 UTC, ref2401 wrote:
> On Wednesday, 16 September 2015 at 14:48:59 UTC, Meta wrote:
>
>> Don't do this with a dynamic array, though, as they work a bit
>> differently from static arrays.
>
> Unfortunately I have to deal with dynamic arrays.
In that case, you can use std.array.uninitializedArray or
std.array.minimallyInitializedArray as needed.
http://dlang.org/phobos/std_array.html#uninitializedArray
http://dlang.org/phobos/std_array.html#.minimallyInitializedArray
More information about the Digitalmars-d-learn
mailing list