Array of array

RenatoL rexlen at gmail.com
Mon Jan 2 14:04:57 PST 2012


auto r = new int[][5];
this is ok

auto r = new int[][];
this is not ok
Error: new can only create structs, dynamic arrays or class objects
, not int[][]'s

why?


More information about the Digitalmars-d-learn mailing list