[fpc-pascal] Feature "Multiline strings" added
Michael Van Canneyt
michael at freepascal.org
Mon Jul 28 22:53:38 CEST 2025
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 <
> fpc-pascal at lists.freepascal.org> 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.
More information about the fpc-pascal
mailing list