[fpc-pascal] how to define a generic subclass inheriting from another generic class?

Dennis Poon dennis at avidsoft.com.hk
Tue Dec 10 11:52:20 CET 2013

What is the syntax. I could not find it in google.

e.g. in unit fgl,

generic TFPGMap<TKey, TData>=class(TFPSMap)

How do I define a subclass TMyMap inheriting from TFPGMap without first 
specializing it?

I assumed

generic TMyMap <TKey, TData> = class(generic TFPGMap<TKey, TData>)

but fpc 2.6.2 did not accept this.

Please help.


More information about the fpc-pascal mailing list