[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
Fri Jul 5 17:21:37 CEST 2019
On Fri, Jul 5, 2019 at 10:27 AM Ryan Joseph <genericptr at gmail.com> wrote:
> program test;
>
> {$modeswitch multilinestrings}
> {$multilinestringlineending cr}
>
> const lines = `
> aaa
> bbb
> ccc
> ddd
> `;
>
> begin
> writeln(lines);
> end.
>
Also:
Just so nobody gets confused, if you want to test the feature, do not
actually try to use the {$modeswitch multilinestrings}, as it does not
exist *yet*.
Ryan's example in this case is what it *will* look like overall though, and
it *does* compile as written, currently, if the line with the modeswitch is
removed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190705/6d9271d8/attachment.html>
More information about the fpc-devel
mailing list