[fpc-devel] Generics

Micha Nelissen micha at neli.hopto.org
Fri Aug 17 11:40:50 CEST 2007

Mattias Gaertner wrote:
> For example, this is currently not allowed:
>   generic TTree<T> = class(TObject)
>   type public 
>     TTreeNode = specialize TNode<T>;
>   end;

Shouldn't this be allowed?

Perhaps it can only work with a complete TTreeNode description, probably 
the TNode is specific for use by TTree anyway. But that would limit it 
to being a record.


More information about the fpc-devel mailing list