[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.

Michael Van Canneyt michael at freepascal.org
Thu Jul 4 15:12:34 CEST 2019



On Thu, 4 Jul 2019, Ben Grasset wrote:

>> Also, things like
>> trailing spaces and the line terminators being either #10 or #10#13 may
>> cause a lot of problems if the string has to be known exactly (e.g. for
>> cryptographic hash generation).
>
>
> This, which is IMO *still* a non-problem in the sense of it should
> absolutely not be the compiler's duty to babysit and/or police line
> people's *line endings*, would not even be "solved" by IncludeString as it
> would still then depend on exactly how an editor *saves* the line endings.

That's exactly the advantage of IncludeString : You don't need to care about the
line ending of the sources. It can differ from those in the strings, which
is going to be a tad difficult in an editor such as lazarus - or most editors in fact
- as they will change the line endings uniformly for the whole file...

Michael.


More information about the fpc-devel mailing list