Re: Feature "Multiline strings" added
Martin Frb via fpc-pascal <[email protected]>
| Newsgroups | gmane.comp.compilers.free-pascal.general |
|---|---|
| Message-ID | <[email protected]> |
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. ;)
_______________________________________________
fpc-pascal maillist - [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal