[fpc-pascal] Generics - extending TFPGObjectList

Sven Barth pascaldragon at googlemail.com
Thu Jul 26 14:09:34 CEST 2018


Vojtěch Čihák <vojtech.cihak at atlas.cz> schrieb am Do., 26. Juli 2018, 13:40:

> Thanks for reply.
>
>
>
> Ad 2) I opened issue: https://bugs.freepascal.org/view.php?id=34037
>
>
>
> Ad 1) Are there any plans for improvement of generic inheritance? Related
> to my example, instead of
>
>
>
>     generic TFPGObjectListEx<T: TIDClass> = class (specialize
> TFPGObjectList<T>)
>
>
>
> I would prefer simplier and more straightforward
>
>
>
>     generic TFPGObjectListEx<T> = class (TFPGObjectList)
>
>
>
> which will give programmers possibility to extend classes from FGL without
> any further constraints.
>
>
>
> What if I fill feature request? :-)
>
I have no intention of changing this.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180726/fac8ac4d/attachment.html>


More information about the fpc-pascal mailing list