[fpc-pascal] Re: Correct use of var in function calls?
Florian Klämpfl
florian at freepascal.org
Sun Feb 6 23:11:09 CET 2011
Am 06.02.2011 18:53, schrieb Bo Berglund:
>
> So in summary:
> If the called method changes the length of teh dynamic array it must
> be passed as a var, otherwise the length change will be lost when
> exiting the method.
I'd even propose that one uses var as soon as he plans to change the
array. It makes the code easier to understand.
More information about the fpc-pascal
mailing list