Why can I not concatenate a const(char)* to a string in D?

Viewed 389

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.

2 Answers
Related