Hello guys

Hello guys,

I'm a bit curious about this API design:
At System.Generics.Collections.TArray type:

Shouldn't
class procedure Sort(var Values: array of T; const Comparer: IComparer; Index, Count: Integer); overload; static; // current version

be

class procedure Sort(var Values: array of T; const Comparer: IComparer; Index, Count: NativeInt); overload; static; // possible new version

Once the length of a dynamic array is a NativeInt field? In Copy class procedure I can see Count as a NativeInt field.

:D

Comments