Hello,

a quick question: how do I define a generic type helper?

Example:

type generic TArray<T> = array of T;
type generic TArrayHelper<T> = type helper for TArray
  function Count: Cardinal;
  function Contains (AItem: T): Boolean;
end;

This doesn't work, but I don't know how to do it properly.

Thanks,
Thomas  

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to