[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.
wkitty42 at windstream.net
wkitty42 at windstream.net
Wed Jul 3 20:36:26 CEST 2019
On 7/3/19 12:53 PM, Ben Grasset wrote:
> On Wed, Jul 3, 2019 at 10:22 AM Marcus Sackrow <alb42 at web.de> wrote:
>
> I use an operator overload(not for constants but inside the code)
> because I'm used to our script engine have the '/' as operator for
> strings as line break.
>
> 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.
FWIW: it uses the '/' in the traditional *nix form of indicating a line
continues on the next line...
[edit before shipping]
oh! oops! nope... that's the '\' character which i would prefer to see but i do
like his operator overload and may swipe it for use with the '\' character some
time... it appears to fit perfectly for this task ;)
https://www.google.com/search?q=linux+line+continuation+character
--
NOTE: No off-list assistance is given without prior approval.
*Please keep mailing list traffic on the list unless*
*a signed and pre-paid contract is in effect with us.*
More information about the fpc-devel
mailing list