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

Reply via email to