[fpc-pascal] is it possible to subclass a generic class?

Dennis Poon dennis at avidsoft.com.hk
Sun Oct 6 14:50:08 CEST 2013


I want to do something like this but the compile complains.

Type
     generic TMyMap<TKey, TData> =class( generic TFPGMap<TKey, TData>)
       destructor Destroy; override;
       constructor Create;
     end;


I want to override some methods and destructor before my class is 
specialized later.

Is it possible? How?

Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131006/8a47f5f6/attachment.html>


More information about the fpc-pascal mailing list