[Issue 6182] _d_arraycopy should take TypeInfo as final argument instead of simply element size
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jun 13 03:38:29 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=6182
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-06-13 03:38:24 PDT ---
I checked this with 2.064a(fbd6c9f)
struct S
{
static int cnt;
this(this) { ++cnt; }
}
void main()
{
S[3] sa1;
S[3] sa2;
sa1[] = sa2[];
printf("S.cnt = %d\n", S.cnt); // prints 3
auto da1 = new S[](3);
auto da2 = new S[](3);
da1[] = da2[];
printf("S.cnt = %d \n", S.cnt); // prints 6
}
Is this already fixed?
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list