On 2023-04-04 11:14, Sven Barth wrote:
Tomas Hajny via fpc-pascal <fpc-pascal@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.

Tomas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to