is there way how to declare function, which will accept as parameter any
array type ?
(this parameter I need forward to System.Length() only )
Generally one uses TArray<T> as parametertype. in such cases. One can take
the length of a generic array.
Hm,
I do not understand.
I need something like:
function GetLength(const A): integer; inline;
begin
Result := System.Length(A); // of course here I get "Type mismatch"
end;
Regular function, which I will call from generic object method as far as
inside generic object method I can not use System.Length()
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal