Simple array init question

Graham grahamamacdonald at gmail.com
Sat Apr 7 11:13:39 PDT 2007


Thanks for your reply.  No, I didn't try that, since the array I'm 
actually using is several thousand elements large.


Paul Findlay wrote:
>> It compiles, but if I enter:
>>    int[5][5] buffer;
>>    buffer[][] = 5;
> 
> Have you tried:
> 
> int[5][5] buffer;
> buffer[] = [5,5,5,5,5]; // or something
> 
> (Or try in the digitalmars.D.learn newgroup)
> 
>  - Paul



More information about the Digitalmars-d mailing list