Multiline String Literals without linefeeds?

John Carter john.carter at taitradio.com
Sun Sep 22 21:43:14 PDT 2013


In C/C++ in the presence of the preprocessor a string

char foo[] = "\
long\
string\
without\
linefeeds\
";

Is translated by the preprocessor to

char foo[] = "longstringwithoutlinefeeds";

is there a similar mechanism in D? Or should I do...

string foo =
"long"
"string"
"without"
"linefeeds"
;


More information about the Digitalmars-d-learn mailing list