[fpc-pascal] Generics vs TCollection

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Tue Nov 8 11:13:00 CET 2011



On Tue, 8 Nov 2011, Graeme Geldenhuys wrote:

> Hi,
>
> I was reviewing some old code that used TCollection & TCollectionItem
> descendants. This made me think... With the introduction of Generics,
> is there really still a need for TCollection/TCollectionItem?


I have tons of code that uses them. Lazarus has tons of code that uses them.
There is no way that we're going to rewrite all that stuff.

So: yes, even if only for backwards compatibility.

Nothing stops people from not using it, and use generics instead, if they
are so inclined.

Michael.



More information about the fpc-pascal mailing list