int[3][4]*

bearophile bearophileHUGS at lycos.com
Fri Sep 7 19:19:26 PDT 2012


Ellery Newcomer:

> alright what's the deal?

This is one of the "clean" ways to do it:

void main () {
     static struct Mat {
         int[3][4] m;
         alias m this;
     }
     Mat* fooz = new Mat;
     fooz[1][3] = 5;
}


Bye,
bearophile


More information about the Digitalmars-d-learn mailing list