write multiple lines without "\n" with writeln

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


On 11/21/14, 1:59 PM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
> On Friday, 21 November 2014 at 15:00:31 UTC, ketmar via
> Digitalmars-d-learn wrote:
>> On Thu, 20 Nov 2014 14:23:23 -0300
>> Ary Borenszweig via Digitalmars-d-learn
>> <digitalmars-d-learn at puremagic.com> wrote:
>>
>>> This way you avoid silly typing mistakes while at the same time you
>>> allow splitting a string across several lines without having to
>>> concatenate them at runtime.
>> i bet that current D frontend is able to concatenate string literals in
>> compile time.
>
> AFAIK yes. There was a change to guarantee that string literals
> concatenated by ~ are joined at compile time. The goal was to deprecated
> concatenation by juxtaposition, which hasn't happened yet, though.

What's concatenation by juxtaposition?


More information about the Digitalmars-d-learn mailing list