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.uninitialize
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
On 26/09/13 23:23, H. S. Teoh wrote:
You mean:
int[10] arr = void;
It's what I was thinking of, but does that also work with a dynamic array
declaration?
int[] arr = new int[n];
On Thu, Sep 26, 2013 at 11:23:10PM +0200, Joseph Rushton Wakeling wrote:
> Hello all,
>
> Suppose I create a new dynamic array:
>
> auto arr = new int[10];
>
> If I recall right, the values inside arr will be auto-initialized to
> int.init (which is 0).
>
> Again, if I recall right, there's