On Tue, October 10, 2017 11:21, Sven Barth via fpc-pascal wrote: > Am 10.10.2017 08:49 schrieb <pasc...@piments.com>: >> BTW why would anyone want >> {$WRITEABLECONST ON} >> >> 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. Tomas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal