Re: Multiline String Literals without linefeeds?

2013-09-23 Thread Dicebot
On Monday, 23 September 2013 at 11:30:18 UTC, bearophile wrote: Dicebot: Rationale / link to discussion? I use it extensively. http://d.puremagic.com/issues/show_bug.cgi?id=3827 Bye, bearophile Thanks. Well, then we will have _guaranteed_ const-folding of adjacent concatenated string lit

Re: Multiline String Literals without linefeeds?

2013-09-23 Thread bearophile
Dicebot: Rationale / link to discussion? I use it extensively. http://d.puremagic.com/issues/show_bug.cgi?id=3827 Bye, bearophile

Re: Multiline String Literals without linefeeds?

2013-09-23 Thread Dicebot
On Monday, 23 September 2013 at 11:10:07 UTC, bearophile wrote: simendsjo: Isn't "some" "string" replaced with "somestring" early on? Yes, unfortunately. And it's something Walter agreed with me to kill, but nothing has happened... Bye, bearophile Rationale / link to discussion? I use it

Re: Multiline String Literals without linefeeds?

2013-09-23 Thread bearophile
simendsjo: Isn't "some" "string" replaced with "somestring" early on? Yes, unfortunately. And it's something Walter agreed with me to kill, but nothing has happened... Bye, bearophile

Re: Multiline String Literals without linefeeds?

2013-09-23 Thread simendsjo
On Monday, 23 September 2013 at 09:42:59 UTC, bearophile wrote: John Carter: is there a similar mechanism in D? Or should I do... string foo = "long" "string" "without" "linefeeds" ; Genrally you should do: string foo = "long" ~ "string" ~ "without" ~

Re: Multiline String Literals without linefeeds?

2013-09-23 Thread bearophile
John Carter: is there a similar mechanism in D? Or should I do... string foo = "long" "string" "without" "linefeeds" ; Genrally you should do: string foo = "long" ~ "string" ~ "without" ~ "linefeeds"; See also: http://d.puremagic.com/issues/show_bug.c

Re: Multiline String Literals without linefeeds?

2013-09-23 Thread simendsjo
On Monday, 23 September 2013 at 04:43:16 UTC, John Carter wrote: 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 sho

Multiline String Literals without linefeeds?

2013-09-22 Thread John Carter
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" ;