> It seems a bit drastic to me to discard the existence of the dynamic array
as well as the (non-existent) values stored in it! Presumably, all will be
well
if I size the array inside the initializing routine, breaking my rule that
the
routine that makes the array must also contain the code to g
On Fri, 18 Nov 2011 23:11:14 -0800 (PST) leledumbo
wrote
re use of "Out" parameters
> ... As stated in the
> docs (http://www.freepascal.org/docs-html/ref/refsu57.html): "The initial
> value of the parameter on function entry is discarded, and should not be
> used." which is why you get 0
The correct results are obtained if
> 1) I substitute "Var" for "Out". This leads to the warning that X is not
initialized.
"var" could be used to treat the parameter as in-out, so the warning is
expected if you haven't initialized the variable before. As stated in the
docs (http://www.freepasc