Hi *,
I found small incompatibility between Delphi and FPC.
This code:
var a,b: array of byte;
begin
setlength(a,2);
b:=copy(a,2,1); //<--HERE "Range check error" in FPC, Delphi
returns empty array
end;
Delphi documentation says:
"If Index is larger than the length of S, *Copy* returns an empty string
or array."
http://docwiki.embarcadero.com/VCL/en/System.Copy
Can it be fixed also in FPC?
L.
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel