[fpc-devel] TList or TFPList - a Linked list ?

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Dec 15 00:51:36 CET 2005

On Wed, 14 Dec 2005 16:22:53 -0700
Sterling Bates <whoelse at sterlingbates.com> wrote:

> Mattias Gaertner wrote:
> >If the linked list item contains the whole data, then you are either not
> >talking of the generic list this thread is about, or you use templates.
> >In the later case a TList will also use templates and the 'payload' is
> >the same.
> >  
> >
> That's true of records, sure.  Someone could also create a 
> TLinkedListItem base class from which to descend and store their data 
> there.  The next & prev pointers can be stored in the base class.

Well, if you use objects, then you get even more mem overhead ... :)

> Anyway, thanks for the discussion :)

With pleasure.
We could discuss it endless. Micha's original idea was even to use a block
linked list. :)


More information about the fpc-devel mailing list