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

Flávio Etrusco flavio.etrusco at gmail.com
Fri Nov 20 03:27:17 CET 2009


On Thu, Nov 19, 2009 at 4:18 AM, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>
> On 19 Nov 2009, at 07:35, Graeme Geldenhuys wrote:
>
>> Somebody did once attempt to correct the var parameter to out parameter
>> in FillChar, but got to many errors. Probably not a high priority issue,
>> so the problem was simply swept under the rug.
>
> It's not about it not being a high priority problem, it's about it being
> fundamentally unfixable (except by using a completely different kind of
> declaration, such as a pointer). Again, see the thread on this topic on
> fpc-devel:
> http://lists.freepascal.org/lists/fpc-devel/2009-November/018532.html
>
>
> Jonas

Out of curiosity, does anybody know how Delphi solves this? I don't
remember seeing a warning (having to initialize variables) on FillChar
in Delphi...

Best regards,
Flávio

PS. And of course, please disregard my previous comment on this thread ;-)



More information about the fpc-pascal mailing list