Dynamic arrays in D 1.0
Janice Caron
caron800 at googlemail.com
Sun May 11 13:58:09 PDT 2008
On 11/05/2008, Bill Baxter <dnewsgroup at billbaxter.com> wrote:
> std.algorithm's copy(), in its current form, will be less efficient because
> it copies elements one-at-a-time in a loop.
That may be what the source code does, but it's the compiler's job to
optimize. If it doesn't, I blame the compiler :-)
Also, memmove can't be used in CTFE.
> Anyway, the existence of such subtleties is why things like erase
> should just be in the darn standard library so the problem only has
> to be solved once.
I agree.
Although, that said, I don't think anyone's really considered it a
"problem" before now.
More information about the Digitalmars-d
mailing list