[fpc-pascal] How to solve "variable does not seem to be initialized" compiler hint.
JoshyFun
joshyfun at gmail.com
Tue Nov 17 23:19:58 CET 2009
Hello FPC-Pascal,
Tuesday, November 17, 2009, 8:47:03 PM, you wrote:
c> Can the Fill... functions be changed to have the first parameter "out"
c> instead of "var" ? Surely they don't use it as an input parameter.
Write your own "fillchar" like function and inline it, something like:
procedure MyFillChar(out x; count: SizeInt; Value: char); inline;
begin
{$PUSH}
{$HINTS OFF}
FillChar(x,count,Value);
{$POP}
end;
--
Best regards,
JoshyFun
More information about the fpc-pascal
mailing list