TList

Sclytrack Sclytrack at pi.be
Tue Mar 18 15:06:26 PDT 2008


I believe TList from Borland keeps an array that doubles in size.

8 16 32 64

and that the list.Count value that you get is always smaller than
the actual size of the array. This doubling requires usually more
memory for each array.
It uses pointers because it wants to be as general as possible,
No generics back then.

I was told that adding an array in D uses realloc (Haven't verified this),

Disclaimer:
My Borland is a bit rusty, so I might be wrong, currently no windows installed.


More information about the Digitalmars-d-learn mailing list