[fpc-pascal] readonly variables

Holger Bruns holger.bruns at gmx.net
Wed Dec 2 10:26:46 CET 2009


Anthony Walter schrieb:
> This first time concerning  the topic "const records passed
> incorrectly" you said, "It is nowhere written in the Delphi specs that
> const parameters are passed by reference. It is often so, but is by no
> means guaranteed"
>   
I checked this out. Both Turbo Pascal and fpc reported the same error 
massage: Variable identifier expected. You simply cannot pass constant 
values by reference.

HTH, Holger




More information about the fpc-pascal mailing list