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

wkitty42 at windstream.net wkitty42 at windstream.net
Sun Jul 7 16:12:08 CEST 2019


On 7/6/19 4:50 PM, wkitty42 at windstream.net wrote:
>> const MultiLine =
>> `Sentence one.
>> Another sentence.
>> A third sentence.
>> A fourth sentence.
>> A fifth sentence.`;
> 
> procedure foo
>    procedure bar
>      const MultiLine1 =
>            `Sentence one.
>             Another sentence.
>             A third sentence.
>             A fourth sentence.
>             A fifth sentence.`;
>            MultiLine2 = `Sentence one.
>                          Another sentence.
>                          A third sentence.
>                          A fourth sentence.
>                          A fifth sentence.`;
>            MultiLine3 = `Sentence one.
> Another sentence.
> A third sentence.
> A fourth sentence.
> A fifth sentence.`;
>      begin
>        writeln("MultiLine1= '",MultiLine1,"'");
>        writeln("MultiLine2= '",MultiLine2,"'");

         (* i forgot to do the line for MultiLine3 *)
         writeln("MultiLine3= '",MultiLine3,"'");
         (* that's what happens when you write directly
            in the email editor without testing *)

>      end;
>    begin
>      bar;
>    end;
> end;


-- 
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list unless*
        *a signed and pre-paid contract is in effect with us.*


More information about the fpc-devel mailing list