In functions blockread and blockwrite, the result parameter is "var".
And in blockread buffer is also "var".

Couldn't they be marked as "out" instead of "var"?.
It's not an aesthetic or academic change,  I would save a lot of  "not
initialized" warnings that flood the message window.

Of course I could use compiler directives to remove that warning, or
initialize the actual parameter. But why should we waste time setting a
dummy value that, in fact, it's always going to be ignored and overwritten?
Couldn't the parameter be changed to "out" to avoid these warnings that
are false positives?

-- 
Saludos
Santiago A.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to