[fpc-pascal] Blockread blockwrite var vs out parameters
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Dec 16 17:04:48 CET 2015
Bart wrote on Wed, 16 Dec 2015:
> Can't we hardcode the compiler to not give a hint on FillChar and related?
> Especially since these are used to initialize (null) variables.
We could, but that would be an extremely ugly hack. You can always
write and use your own wrapper if you know that you won't be bitten by
the side-effects of "out"
procedure MyFillChar(out data; size: sizeuint; value: byte);
begin
fillchar(data,size,value);
end;
Jonas
More information about the fpc-pascal
mailing list