2014-02-27 18:43 GMT-03:00 Joao Morais <l...@joaomorais.com.br>: > Correct. The feature I was talking about is something like: > > generic TMyGeneric<T: TMyType> > > And TMyType is a class. In this case the compiler knows I am talking about > a generic for a class type and a "generic as Java" becomes possible.
Seems that you are looking to class type constraints: http://docwiki.embarcadero.com/RADStudio/XE4/en/Constraints_in_Generics http://blogs.teamb.com/craigstuntz/2008/08/29/37832 Not sure if will allows to do what you are looking for Luiz
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal