Re: Feature "Multiline strings" added

Michael Van Canneyt via fpc-pascal <[email protected]>
Newsgroups gmane.comp.compilers.free-pascal.general
Message-ID <[email protected]>

On Mon, 28 Jul 2025, Hairy Pixels via fpc-pascal wrote:

> On Jul 28, 2025 at 10:13:20 AM, Martin Frb via fpc-pascal <
> [email protected]> wrote:
>
>> Or have array element index done different?
>>   type TFooArray = array (.0..9.) of Byte;
>>     SomeFooArray(.3.) := 1;
>>
>> Oh wait, that compiles. ;)
>>
>
> never saw that before! so ugly too. Why does it compile?

Sven already said it:

Because (. .) is a valid alternative for [ ]

The first syntax is a "digraph" of the second syntax, dates back to the
times when not all characters were available on keyboards.

Goes to show that Pascal is an old language. But still going strong ;-)

Michael.

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.