Dynamic arrays in D 1.0
Walter Bright
newshound1 at digitalmars.com
Sun May 11 17:30:02 PDT 2008
Edward Diener wrote:
> In the dynamic array world I would have expected functionlaity for
> erasing part of the array, inserting a new array at some point in the
> array, and for replacing any part of the array with another array of any
> length. The replace is merely an erase + insert under the covers. Of
> course I am also talking about arrays of the same type.
I agree.
> Since dynamic arrays are part of the language and not a separate library
> I would have expected built-in functionality to manipulate them easily.
> Of course it can be in a library, but it seems even a general purpose
> dynamic array library does not exist for D 1.0, so that seems odd to me.
It's demand driven <g>. Some of the functions in std.string may seem odd
for someone coming from the C++ world, but they are functionally
equivalent to Python's and Ruby's string functions.
More information about the Digitalmars-d
mailing list