[Issue 7752] Static array .init is actually .init of the array element type, not the array.
https://issues.dlang.org/show_bug.cgi?id=7752 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 7752] Static array .init is actually .init of the array element type, not the array.
http://d.puremagic.com/issues/show_bug.cgi?id=7752 monarchdo...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WORKSFORME --- Comment #2 from monarchdo...@gmail.com 2012-10-05 15:43:31 PDT --- Well, this was either invalid, or fixed, but it works now anyways. Closing as resilved/worksforme -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 7752] Static array .init is actually .init of the array element type, not the array.
http://d.puremagic.com/issues/show_bug.cgi?id=7752 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com --- Comment #1 from monarchdo...@gmail.com 2012-09-14 03:12:46 PDT --- Just executed this: void main() // 1 { // 2 int[5] x; // 3 // 4 if (x == x.init) { } // 5 Code that should be legal if (x.init == x[0].init) { } // 6 Code that is actually illegal } // 7 And it produces: main.d(6): Error: incompatible types for (([0,0,0,0,0]) == (0)): 'int[5u]' and 'int' So it looks like the issue is fixed. Anybody know which pull fixed this, or should I just close? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---