[fpc-pascal] How to solve "variable does not seem to be initialized" compiler hint.

Florian Klaempfl florian at freepascal.org
Thu Nov 19 10:15:21 CET 2009


Graeme Geldenhuys schrieb:
> Florian Klaempfl wrote:
>> If hints are really important, they would be warnings.
> 
> And working with a uninitialized data structure is a good thing? I think
> not. So, like everybody else, I manually initialise my data structures -
> and because of my efforts to write safer code, the compiler gives me a
> hint "variable does not seem to be initialized". The exact opposite of
> what I was trying to do. So that hint is useless, after I really did fix
> the potential problem in code. The problem is simply FillChar that uses
> the wrong parameter type - var instead of out.

Out is not made to solve such problems but plainly to work with COM/Corba.



More information about the fpc-pascal mailing list