[fpc-pascal] function Copy is inconsistent with Delphi

Alexander Todorov alexx.todorov at gmail.com
Tue Jan 16 10:12:19 CET 2007


Hello,
i am converting a big Delphi project a part of uses a lexical parser.
It is dependent on the Copy function which in Delphi is declared:

function Copy(S; Index, Count: Integer): string;

and in FPC it is:

function Copy(const s: string; FromPosition, ToPosition : integer): String;


Why there are different declarations? I see that the FPC variant is
used in a lot of places and it is not likely that it will be changed
to be compatible with Delphi.

Thanks to all.



More information about the fpc-pascal mailing list