Dynamic arrays in D 1.0

Robert Fraser fraserofthenight at gmail.com
Sun May 11 13:06:39 PDT 2008


Edward Diener wrote:
> I am guessing this must be provided in D libraries of functions ( Phobos 
> ? Tango ? ) templated on the dynamic array type. But, if so, this seems 
> a poor way of providing dynamic array functionality as compared to 
> built-in dynamic array functionality in order to provide the sort of 
> functionality mentioned above, especially as D's dynamic arrays are part 
> of the D language as opposed to a separate library like C++'s 
> std::vector<T> and std::string.

I disagree. Having it in a library mans its more extensible and can be 
rewritten/altered more easily (for example, if more efficient algorithms 
are found).



More information about the Digitalmars-d mailing list