> Do you mean this one?
>
> "Using const allows the compiler to optimize code for structured- and
> string-type parameters."
>
> "Allows" is not the same as "forces". This line in the help file does not
> say that const parameters are passed by reference. It says that it may often
> be so, perhaps all current implementations make it so, but it is by no means
> guaranteed.

Martin Schreiber also chimed in, pointing out:

http://bit.ly/6uaAiB

"Larger sets, records, and static arrays are passed as 32-bit pointers
to the value."

The documentation is unambiguous there. Claiming that it doesn't have
anything to say on the subject is patently false.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to