On Thursday, 26 September 2013 at 22:21:58 UTC, Matej Nanut wrote:
On Thursday, 26 September 2013 at 22:14:27 UTC, Joseph Rushton Wakeling wrote:
It's what I was thinking of, but does that also work with a dynamic array declaration?

   int[] arr = new int[n];

Check out std.array.uninitializedArray.

Matej

Bah, I just noticed you already mentioned that, but the threading got messed up for me so I didn't see it on the page. Sorry!

Anyway, I don't think there is another way to do it.

Reply via email to