On Mon, 8 May 2017, Mattias Gaertner wrote:
On Mon, 8 May 2017 09:22:48 +0100
Graeme Geldenhuys <mailingli...@geldenhuys.co.uk> wrote:
On 2017-05-08 04:26, nore...@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.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal