Old problem with performance
Rainer Deyke
rainerd at eldwood.com
Fri Feb 13 00:44:39 PST 2009
Andrei Alexandrescu wrote:
> C++ ctors won't do the right thing if you use pointers, which is the
> moral equivalent of using T[] inside MathematicalVector. If you refer to
> std::vector instead, then that's a carefully-defined type that does have
> the right copy constructor defined.
So where's the D equivalent of std::vector? Phobos has nothing. Tango
has containers, but they are also reference types.
I was under the impression that native arrays were intended to be used
directly in D, something I rarely do in C++. Certainly neither of the
standard libraries has any hesitation about passing unadorned dynamic
arrays around.
--
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d
mailing list