> > What about TList of Objects ???
> > I find the TList easy, flexible and useful...
>
> In D4 at least the TList is actually just a dynamic array implemented
> without the assistance of the Delphi construct but instead using a pointer
> to a block of memory.  The issues of performance for inserts, deletes
> and incremental growth exist as much for TList as for arrays and in return
> you lose type-safety.
>
... although a standard TCollection is just an encapsulated TList anyway!

Of course you could write a TCollection which uses a different storage
method as Aaron suggested in his earlier message. Personally I find TList's
very convenient but if your list is going to be very large and/or you are
going to be doing a lot of deletes then the overhead on reallocating the
internal array (growing) or moving large chunks of the array (when deleting)
might be a problem.

David
DB Solutions.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to