write multiple lines without "\n" with writeln

Ary Borenszweig via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 21 09:48:18 PST 2014


On 11/21/14, 2:46 PM, Adam D. Ruppe wrote:
> On Friday, 21 November 2014 at 17:43:27 UTC, Ary Borenszweig wrote:
>> What's concatenation by juxtaposition?
>
> When "foo" "bar" turns into "foobar". The two string literals are right
> next to each other, no operator or anything else in between, so they are
> combined.

Ah, I see. Yes, I guess that's a bug-prone thing to have. And since 
there's already `~` to concatenate strings (even at compile time) 
removing that feature would be good.


More information about the Digitalmars-d-learn mailing list