dup and arrays
strtr at spam.com
Fri Mar 26 19:34:55 PDT 2010
Ellery Newcomer Wrote:
> I just noticed that dup does not dup deep.
> In a two second search I couldn't find any reason for or against, but
> I'd kinda like it if
> auto r2 = r.dup;
> r2[i][j] = 0;
> r[i][j] = 1;
> assert(r2[i][j] != r[i][j]);
There have been discussions about this before.
Here is the first I found (couldn't find my own .ddup request :)
More information about the Digitalmars-d-learn