[Issue 11416] New: Array and slice assignment causes garbage values
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 1 18:56:56 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11416
Summary: Array and slice assignment causes garbage values
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: druntime
AssignedTo: nobody at puremagic.com
ReportedBy: daniel350 at bigpond.com
--- Comment #0 from daniel350 at bigpond.com 2013-11-01 18:56:54 PDT ---
void main() {
float[3] x = [1,1,1];
float[] y = [4,4,4,4];
float[5] w = x[] + y[]; //ok
writeln(w); // [5, 5, 5, 4, 5.60519e-45]
}
w should be [5, 5, 5, 4, float.init]
Right?
http://dpaste.dzfl.pl/fork/53b6d5b5
--
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