[fpc-pascal] Initializing records and other complicated structures

Vincent Snijders vincent.snijders at gmail.com
Tue Sep 28 21:03:01 CEST 2010


2010/9/28 J├╝rgen Hestermann <juergen.hestermann at gmx.de>:
> Sven Barth schrieb:
>>
>> It's enough code, because FillByte (and others) are defined with a "var"
>> parameter and such the hint (not a warning) won't go away.
>> It's an old topic already and we have just to live with it (regarding the
>> Fill* functions). ^^
>
> But why not simply change the definition of the variable to "out"? Then the
> Fill* functions would be recognized as initializing routines.

No, see http://bugs.freepascal.org/view.php?id=17020

Vincent



More information about the fpc-pascal mailing list