[fpc-pascal] generics class hierarchy

David Emerson dle3ab at angelbase.com
Thu Dec 16 19:55:40 CET 2010


Hi all,

How can I use inheritance with generics? e.g.

type
  generic gt_point<_num> = class
    ...
    end;

  generic gt_box<_tpoint,_num> = class (_tpoint)
    ...
    end;

The above gives me an error; I've tried some other variations but haven't yet 
found anything that works

Thanks,
David




More information about the fpc-pascal mailing list