procedure TestBuf(const Buf; Size: Integer);
begin
end;


It should work. AFAIR, typed constants are treated exactly as variables with an initial value.

Actually untyped parameters accept anything except numeral or untyped numeric constant in Delphi. The meaning of const in this example is contract that function will not change passed value.

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to