[Issue 6286] Static arrays can not be assigned from const(T)[N] to T[N]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 11 04:15:01 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6286
--- Comment #2 from Sönke Ludwig <ludwig at informatik.uni-luebeck.de> 2011-07-11 04:09:49 PDT ---
Note that in the test case both, the source and the destination are static
arrays of the same size. There is no reason why a direct assignment should not
work here. I think the compiler mistakes the left side here as a dynamic array.
In the case of really assigning a dynamic array to a static one, the decision
is definitely not so obvious as it could lead to a hidden runtime error.
--
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