[fpc-devel] Some thoughts on multi-line string support, and a possible syntax that I think is perfectly clean and Pascal-ish.
gabor
gabor at poczta.onet.pl
Wed Jul 3 21:18:37 CEST 2019
W dniu 2019-07-03 o 20:43, Michael Van Canneyt pisze:
> But the main question is: do we actually want a multiline string ? As
> far as I am concerned, that question needs to be answered first, and for
> me personally the answer to that is still a resounding "no".
I am also against this, but on the other hand, we could extend
{$I}/{$INCLUDE} directive to include file as a string.
E.g:
const
SomeString = {$INCLUDESTR filename.txt};
var
S: String = {$INCLUDESTR filename.txt};
begin
S := {$INCLUDESTR filename.txt};
...
or even:
S := 'blah' + {$INCLUDESTR filename.txt} + 'blah';
Regards,
Michał
More information about the fpc-devel
mailing list