> > Using a Loop counting up the first collision occurs when 
> >Loop = Count div 2

> Freeing an object does *not* remove it from a TList. For that 
> to happen, 
> the object would need to be aware that it was even *in* a 
> TList at all, 
> and objects do not have that knowledge.

Rob's point hints at an even deeper message.  TThe object isn't actually IN
the list.  The size of Mylist[i] is 4 bytes whether you're storing page
numbers or entire TStringGrids.  Yes my friends, the concept of pointer
materializes center stage.  The object is never actually IN the list, only a
reference to the object, a pointer to the object if you will, resides in the
list.  In the end, the concept of a pointer is one you can't fully escape.
Sure the system may hide them from you but you become more of a Delphi User
in the same way most of us are Car Users.  Either way, you can use them as
craftsmen or you use them via another craftsman as a User but either way,
you'll use them.  Take your pick.


Regards,

------------------------------------------------------------------------
 Jim Burns, <mailto:[EMAIL PROTECTED]>
   Technology Dynamics
   Pearland, Texas  USA 
   281 485-0410 / 281 813-6939


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to