The D Programming Language page 161.

2013-11-13 Thread Tor Einar Tønnessen
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

Re: The D Programming Language page 161.

2013-11-13 Thread Uplink_Coder
I guess that new should be length as it represents as an integer variable

Re: The D Programming Language page 161.

2013-11-13 Thread Adam D. Ruppe
On Wednesday, 13 November 2013 at 08:16:34 UTC, Tor Einar Tønnessen wrote: void writeln(string a0, int a1, string a2, int[new] a3) { Around the time the book was written, there was a debate as to if we should make dynamic arrays and slices two different types. T[new] was the proposed syntax

Re: The D Programming Language page 161.

2013-11-13 Thread Andrej Mitrovic
On 11/13/13, Adam D. Ruppe destructiona...@gmail.com wrote: On Wednesday, 13 November 2013 at 08:16:34 UTC, Tor Einar Tønnessen wrote: void writeln(string a0, int a1, string a2, int[new] a3) { Around the time the book was written, there was a debate as to if we should make dynamic arrays and