The D Programming Language page 161.

Tor Einar Tønnessen" <tor.einar.tonnessen at gmail.com> Tor Einar Tønnessen" <tor.einar.tonnessen at gmail.com>
Wed Nov 13 00:16:33 PST 2013


Hello.

I am trying to learn D using (among other things) "The D 
Programming Language" book.

On page 161 it says:

snippet...

void writeln(string a0, int a1, string a2, int[new] a3) {

...snippet

I am wondering about the expression "int[new] a3"

What does that mean? I have checked, and it does not compile with 
the current compiler - it says: Error: basic type expected, not ] 
...

It is not mentioned in the errata for the book.


Tor Einar


More information about the Digitalmars-d-learn mailing list