Multi dimensional array question.
    bearophile 
    bearophileHUGS at lycos.com
       
    Mon Jul 12 12:41:51 PDT 2010
    
    
  
Heywood Floyd:
> This had me crazy. I ended up putting the brackets on the variable, like
>   int marr[3][5];
> then it worked like
>   marr[2][4] = 9;
That's present only for compatibility with C syntax, this means that you can use it to perform a quicker port of C code to D, but you are supposed to later convert it to D-style array definitions.
See also:
http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=113185
Bye,
bearophile
    
    
More information about the Digitalmars-d-learn
mailing list