[fpc-pascal] Feature "Multiline strings" added
Martin Frb
lazarus at mfriebe.de
Mon Jul 28 18:13:20 CEST 2025
On 28/07/2025 17:59, Michalis Kamburelis via fpc-pascal wrote:
> Moreover, in case of multi-line comments, the additional confusion
> (which I still think is possible) is because there are {$xxx} compiler
> directives changing their behavior, and some of them apply only to
> backtick-style, some only to ''' style, and from their naming
> ($MULTILINESTRINGLINEENDING / $TEXTBLOCK) it's not clear which applies
> to which. We will have to remember that $MULTILINESTRINGLINEENDING is
> for backticks-style, and $TEXTBLOCK is for '''-style.
Maybe they should be named different... I guess the tripple quote
directives match up with Delphi?
(Otherwise MultiQuoteString ?)
But the backtick, could have BacktickString or BackQuoteString in the name?
> On the same ground, we would all protest if someone tried to introduce
> alternative way to write "assignment operator", just because some
> people would like to write "A := B", while others "A <- B". It's not
> that ":=" or "<-" is better, it's that "one version of doing it should
> be enough".
Or have array element index done different?
type TFooArray = array (.0..9.) of Byte;
SomeFooArray(.3.) := 1;
Oh wait, that compiles. ;)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20250728/02d42991/attachment-0001.htm>
More information about the fpc-pascal
mailing list