<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 03.07.19 um 18:53 schrieb Ben
Grasset:<br>
</div>
<blockquote type="cite"
cite="mid:CAL4d7FhtHJDYcjAzuGrgCEsri5PWnLA4Qnqo0Opvo+BFYfaO5w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">On Wed, Jul 3, 2019 at 10:22 AM Marcus Sackrow
<<a href="mailto:alb42@web.de" moz-do-not-send="true">alb42@web.de</a>>
wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
I use an operator overload(not for constants but inside the
code)<br>
because I'm used to our script engine have the '/' as
operator for<br>
strings as line break.<br>
</blockquote>
<div><br>
</div>
<div>That's certainly a neat use of operator overloading!
However, I think that it is still rather less clean/readable
than what would be possible with "true" unbroken multiline
strings.</div>
<div>For really short stuff like your writeln example, also,
it's not much different from just doing the following, which
is already supported:</div>
<div><br>
</div>
<div>writeln('1st line'#13#10'second line');</div>
<div><br>
</div>
<div>or</div>
<div><br>
</div>
<div>writeln('1st line'#10'second line');</div>
<div><br>
</div>
<div>BTW, doing it with an operator like that introduces quite
a bit of additional overhead, as the concatenation is no
longer done at compile time.</div>
<br>
</div>
</div>
</blockquote>
<p><br>
</p>
<p>Sure I meant with that, if a new scheme would be introduced to
make multiline strings easier, i would prefer such operator, then
as real compiler operator also for constants and so on. Mine is
just a workaround. (the operator would also automatically select
the right line ending, mabye defined together with
decimalseparator in formatsettings)</p>
<p>real multiline strings, I do not like, because they look ugly in
a well indented code... so your initial example taken would have
an awful lot of spaces in front of all lines, exept the first one.</p>
<p><br>
</p>
<p>Greetings,</p>
<p>Marcus<br>
</p>
</body>
</html>