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@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.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal