[fpc-devel]Minor Delphi incompatibility (sizeof-related)

Pavel V. Ozerski pavel at insect.mail.iephb.ru
Thu Mar 14 13:20:14 CET 2002


This sample writes different values after compiling with FPC and with
Delphi: 4 if FPC, 0 if Delphi. IMHO, at least for -Sd FPC should
assign also 0 here.

{$apptype console}
function MyProc(var x):longint;
 begin
  MyProc:=sizeof(x);
 end;
var
 i:longint;
begin
 writeln(MyProc(i));
end.

Sincerely,
 Pavel                            mailto:pavel at insect.mail.iephb.ru







More information about the fpc-devel mailing list