[fpc-pascal] Converting old pascal written for Pascal/MT+ compiler

Tomas Hajny XHajT03 at hajny.biz
Tue Apr 4 11:36:16 CEST 2023

On 2023-04-04 11:14, Sven Barth wrote:
> Tomas Hajny via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb
> am Di., 4. Apr. 2023, 09:51:

>> If you read the documentation (wiki or the real documentation in
>> PDF/HTML etc.) properly, you don't find there anything saying that
>> constants declared locally within functions or procedures are
>> guaranteed to keep their modified values across runs of that
>> function/procedure. It
>> might behave like that, but you shouldn't rely on it unless it's a
>> const
>> on a global level (and then renaming may still be needed in case of
>> conflicts).
> It *is* documented (the remark at the end):
> https://www.freepascal.org/docs-html/current/ref/refse10.html#x22-210002.2

OK, my bad. :-( Thanks for this correction.


More information about the fpc-pascal mailing list