On 02 Dec 2009, at 10:26, Holger Bruns wrote:
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.
Passing a parameter by reference and "var" parameters are not the same thing. Const parameters are sometimes passed by reference, and sometimes not. Which it is depends on the implementation in the compiler and/or on the calling convention.
Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal