On 14 Oct 2010, at 14:50, Uffe Kousgaard wrote:
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.
Add {$mode delphi} at the top of your units, or use the command line
parameter -Mdelphi
Jonas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal