[fpc-pascal] machine readable grammar of object pascal?
Jürgen Hestermann
juergen.hestermann at gmx.de
Mon May 8 12:55:24 CEST 2017
Am 2017-05-08 um 12:31 schrieb Marco van de Voort:
> In our previous episode, Michael Van Canneyt said:
>> This is not something invented by FPC.
>> It is something inherited from Turbo Pascal.
> And Delphi up to D4 iirc.
Delphi inherited it from Turbo Pascal.
Actually, it was a hack.
Const defines end up in the global data segment
so writable local constants work like global variables
but are only accessable from the declaring function.
There should have been a different syntax for this
but Borland did not add one.
Now we have this syntax anomaly 'till the end of time...
This shows that before adding new "features" one should
think twice (or three times).
More information about the fpc-pascal
mailing list