[fpc-devel] Generics basic library

Peter Vreman peter at freepascal.org
Thu Jan 17 21:01:40 CET 2008

At 20:40 17-1-2008, you wrote:
>I was coding and I suddently saw that need to use a typed list. I went
>with TFPList, but considering we already have compiler support I
>thougth that maybe we could have a basic library with useful classes
>using generics. I searched on fpc 2.2.0 sources a lot, but I couldn't
>find anything.
>I was thinking on the lines of: TGenericList<T> = class
>Does something similar already exist?
>If not, maybe I can find some time to write something to start with.
>Any ideas about unit name, location on fpc sources, if it's useful at
>all, what it should contain, etc, for that?

See the fgl unit in current 2.2.1 or 2.3.1. Generics were not stable 
enough in the past to have the unit already enabled in 2.2.0.


More information about the fpc-devel mailing list