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

Ryan Joseph genericptr at gmail.com
Fri Jul 5 16:26:51 CEST 2019



> On Jul 5, 2019, at 12:31 AM, Ben Grasset <operator97 at gmail.com> wrote:
> 
> Ok, here's a link to my github fork implementing the multi-line string functionality.
> 

Sweet. Why does the “cr” setting only print one line and “crlf” prints all of them? Sorry I wasn’t following along with all the talk.

It still feels intuitively like we should be using double-quotes instead of back ticks but it’s still very nice.

program test;

{$modeswitch multilinestrings}
{$multilinestringlineending cr}

const lines = `
  aaa
  bbb
  ccc
  ddd
`;

begin
  writeln(lines);
end.


Regards,
	Ryan Joseph



More information about the fpc-devel mailing list