Multiple Dynamic Array

Bill Baxter dnewsgroup at billbaxter.com
Mon Dec 25 18:54:13 PST 2006


efgee wrote:
> Thank you very much, this:
> 
>> int[][][] A = new int[][][](64, 64, 64);
>> char[][][] B = new char[][][](64, 64, 64);
> 
> worked like a charm, with DMD and GDC.
> 
> How do you guys/gals know all these things, didn't find it anywhere written down...
> 
> Thanks again
> 
> efgee


The spec is your friend, but it can definitely be tricky to find things 
there.  You might expect that particular one to be documented under 
"Arrays", but no such luck.  That particular one is here:
  http://www.digitalmars.com/d/expression.html#NewExpression

There's a button in the upper right of every spec page that says 
"Comments".  That takes you to a wiki page that anyone can edit.
I try to add links from the comments page of where I expected to find 
some information to where it's actually found (or just add the info 
itself to the comments page).

--bb


More information about the Digitalmars-d-learn mailing list