Array Concatenate

Paul phshaffer at gmail.com
Fri Jun 8 05:41:10 PDT 2012


If this works...

D programming book section 4.1.9 Expanding
auto a = [87, 40, 10];
a ~= 42;
assert(a== [87, 40, 10, 42]);

why doesnt' this work?

DeletedBlks ~= matchOld[0];

the dmd compiler comes back with
Error: cannot append type string to type string[ulong]

Does this append operator only work for literals?


More information about the Digitalmars-d-learn mailing list