[fpc-devel] Minor doc error about "const param"

Martin Frb lazarus at mfriebe.de
Mon Dec 20 12:07:50 CET 2021


Actually an commission, but an important one.

https://www.freepascal.org/docs-html/current/ref/refsu67.html#x183-20700014.4.4
 > Specifying a parameter as Constant is giving the compiler a hint that 
the contents of the parameter will not be changed by the called routine.

"by the called routine."
Should that not be "by any code (the caller, the called, or any nested 
callee, or any other thread, interrupt or hardware modifying memory)"?
Or maybe "until the called routine has finished, and returned to the 
caller" ?



More information about the fpc-devel mailing list