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.
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to