[fpc-devel] Generics basic library
graemeg.lists at gmail.com
Thu Jan 17 20:56:26 CET 2008
I have never gotten onto the band wagon regarding Generics. I have
only seen the word being tossed around on the mailing lists and
newsgroups. Do you maybe have a nice link explaining Generics, what
benefits it has over TList (TObjectList and friends) and what I would
use it for? I gather FPC 2.2.0 has support for Generics?
- Graeme -
On 17/01/2008, Felipe Monteiro de Carvalho
<felipemonteiro.carvalho at gmail.com> 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?
> Felipe Monteiro de Carvalho
> fpc-devel maillist - fpc-devel at lists.freepascal.org
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the fpc-devel