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
I guess that new should be length as it represents as an integer
variable
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
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