The code
string bar = "Hello ";
const(char) * foo = "world!";
bar ~= foo;
fails to compile in the third line. Why? What elegant alternatives do I have?
The error output is Error: cannot append type const(char)* to type string.
The code
string bar = "Hello ";
const(char) * foo = "world!";
bar ~= foo;
fails to compile in the third line. Why? What elegant alternatives do I have?
The error output is Error: cannot append type const(char)* to type string.