Am 25.04.2016 22:44 schrieb "Anthony Walter" <sys...@gmail.com>: > > Sven, > > Correct me if I'm wrong, but didn't you add support for class/record helpers on generics? For example I'd like to be able to add methods to dynamic arrays: > > type > TArray<T> = array of <T>; > TCompare<T> = function(constref A, B: T): Integer; > > TArrayHelper<T> = record helper for TArray<T> > private > ... > public > procedure Sort(Compare: TCompare); > function First: T; > function Last: T; > function Random: T; > // and so on > end; > > As it is right now the compiler will not allow this.
No, I did not and it's also not planned. Regards, Sven
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal