Jean SUZINEAU via fpc-pascal wrote:

Le 17/12/2023 à 17:47, Adriaan van Os via fpc-pascal a écrit :
Turbo Pascal (5.5) defines

label = digit-sequence .
Are you sure ?
I had a doubt and I had a look in some very old source code from 1990 made with tp 5.5, it seems you could have letters in labels.

You are right. I have a printed cope of the Turbo Pascal 6.0 Programmer's Guide and it says, confusingly, on page 16

        "The digIt sequence for a label must be in the range 0.9999"

and on page 8

        "A label is a digit sequence in the range 0.999".

but on page 9

        "As an extension to Standard Pascal, Turbo Pascal also allows 
identifiers to functions as labels.

Regards,

Adriaan van Os

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to