dcollections 1.0 and 2.0a beta released

Steven Schveighoffer schveiguy at yahoo.com
Wed May 19 13:13:25 PDT 2010


dsimcha Wrote:

> One small comment, though:  Looking at your ArrayList code, wouldn't it make more
> sense to use a capacity field here than to use the builtin array appending
> mechanism, given that this is a class, not a struct?

Yes, that is part of my semi-documented long term plan.  I actually am planning on adding an "extendLength" runtime function to support extending the length of an array as much as possible without reallocating.  That way I can make ArrayList independent of the allocation sizes that the GC supports.

-Steve


More information about the Digitalmars-d-announce mailing list