[fpc-pascal] declaration of functions

Uffe Kousgaard uffe at routeware.dk
Thu Oct 14 14:50:52 CEST 2010


While trying to make delphi code compatible with FPC, I have hit this issue:

Delphi allows:

interface
function somefunction(a: integer): integer;

implementation
function somefunction;
begin
  result:= a*2;
end;

FPC requires the full declaration to be repeated. Can this be avoided 
somehow? I have many functions/procedures without full declaration in 
the implementation part.

TIA
Uffe Kousgaard




More information about the fpc-pascal mailing list