[fpc-pascal] How to solve "variable does not seem to be initialized" compiler hint.
"Vinzent Höfler"
JeLlyFish.software at gmx.net
Thu Nov 19 22:40:53 CET 2009
Rainer Stratmann <RainerStratmann at t-online.de>:
> For me a variable is initialised when it passes a procedure/function
> which has a var declaration in the parameters.
-- 8< --
procedure Add_2 (var I : Integer);
begin
I := I + 2;
end;
-- 8< --
If the variable for the parameter I wasn't correctly initialized before, it would still contain garbage upon return.
Vinzent.
--
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02
More information about the fpc-pascal
mailing list