[fpc-pascal] compiler option for $J directive

Tomas Hajny XHajT03 at hajny.biz
Thu Oct 12 11:41:52 CEST 2017

On Tue, October 10, 2017 11:21, Sven Barth via fpc-pascal wrote:
> Am 10.10.2017 08:49 schrieb <pascalX at piments.com>:
>> BTW why would anyone want
>> writable constants is an oxymoron and goes against the whole philosophy
> of strict types which is central to Pascal.
> They were used mainly back at TP times to have procedure local static
> variables (cause that is how they behave as inside procedures).

Just adding to what has been mentioned previously - they were the only
possibility for variables initialized at compile time at that time. That's
how mode FPC started as well - possilibity of specifying the initial value
for a "var" was added much much later.


More information about the fpc-pascal mailing list