Generic Inheritance
Original Reporter info from Mantis: Kornel Kisielewicz
-
Reporter name: Kornel Kisielewicz
Original Reporter info from Mantis: Kornel Kisielewicz
- Reporter name: Kornel Kisielewicz
Description:
Currently inheritance of generics produces nonsense ( see related http://www.freepascal.org/mantis/view.php?id=8591 ). The idea is to allow proper generic inheritance, example:
type generic TBasicList<TData> = class(TObject)
...
end;
type generic TSpecialList<TData> = class(TBasicList<TData>)
...
end;
where TSpecialList&LtPos;TData> would behave like TList&LtPos;TData> with the passed TData type, except for overloaded options.
The lack of inheritance for generics, forces one to repeat code when implementing differently behaving generics.
Mantis conversion info:
- Mantis ID: 9007
- Fixed in version: 3.0.0
- Monitored by: » Kornel Kisielewicz (Kornel Kisielewicz), » @michaliskambi (Michalis Kamburelis)
- Target version: 3.0.0