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

Ben Grasset operator97 at gmail.com
Sat Jul 6 04:46:21 CEST 2019


On Fri, Jul 5, 2019 at 10:37 PM Ryan Joseph <genericptr at gmail.com> wrote:

> String constant too long while ansistrings are disabled
>
> Regards,
>         Ryan Joseph
>

Getting that with "var SomeString: AnsiString = " should be (and is)
impossible at all times.

Getting that with "var SomeString: String = "  only *maybe* should be (but
is regardless) impossible at all times.

Getting that with "const SomeString = " when in {$H-} is expected at all
times.

Getting that with "const SomeString = " when in {$H+} should be (and is)
impossible at all times.

Typed constants / variables and untyped constants are *not* the same thing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190705/ffe85b09/attachment.html>


More information about the fpc-devel mailing list