[fpc-pascal] Re: declaration of functions
Uffe Kousgaard
uffe at routeware.dk
Fri Oct 15 11:41:58 CEST 2010
Thanks to all. I just found the link on
http://www.freepascal.org/maillist.var to GMANE, so I can follow the list in
my newsreader.
But the correct syntax for the link to work is news:// , not nntp://. At
least with outlook express.
Since I'm compiling for WinCE at the moment, would anybody know if there is
something wrong with the emulator from MS?
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=A120E012-CA31-4BE9-A3BF-B9BF4F64CE72
It keeps stopping installation halfway through with message "was
interrupted". No further errors.
Compiling with freepascal actually pointed out a few details which the
delphi compiler didn't care about. Got code cleaned up a bit that way :-)
Regards
Uffe Kousgaard
"Uffe Kousgaard" <uffe at routeware.dk> wrote in
message news:4CB6FCAC.205 at routeware.dk...
> 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
>
> _______________________________________________
> fpc-pascal maillist -
> fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
More information about the fpc-pascal
mailing list