Initialising multidimensional dynamic arrays

Mike James via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Oct 1 00:13:54 PDT 2014


On Tuesday, 30 September 2014 at 17:22:32 UTC, Steven 
Schveighoffer wrote:
> On 9/30/14 12:40 PM, Mike James wrote:
>> On Tuesday, 30 September 2014 at 16:07:28 UTC, ketmar via
>> Digitalmars-d-learn wrote:
>
>>>  auto a = new int[][](42, 69);
>
> ...
>
>>
>> You'll notice that it's actually a dynamic array of structs 
>> containing
>> dynamic arrays - does this change your initializing?
>
> That is what his code does.
>
> -Steve

Hi Steve,

It's true that his code initialises an array of arrays - but my 
array is an array of structs containing a dynamic array.

Regards, -=mike=-


More information about the Digitalmars-d-learn mailing list