[fpc-pascal] machine readable grammar of object pascal?
Michael Van Canneyt
michael at freepascal.org
Mon May 8 11:00:21 CEST 2017
On Mon, 8 May 2017, Mattias Gaertner wrote:
> On Mon, 8 May 2017 09:22:48 +0100
> Graeme Geldenhuys <mailinglists at geldenhuys.co.uk> wrote:
>
>> On 2017-05-08 04:26, noreply at z505.com wrote:
>> > which is like a variable, but called a const ;-)
>>
>> I'm slowly but surely loosing all hope for Object Pascal. The language
>> is becoming more and more mangled with every new release of
>> Delphi and FPC.
>
> Was a typed const ever read only?
Writeable consts date from the Turbo Pascal days.
In Delphi (and FPC) there is a compiler directive that controls this.
{$WRITEABLECONST ON|OFF}
{$J+/-}
Best is of course to use {$J-}
Michael.
More information about the fpc-pascal
mailing list