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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to