[Issue 6841] writeln problem with array of tuples
http://d.puremagic.com/issues/show_bug.cgi?id=6841 --- Comment #4 from Kenji Hara 2012-12-02 19:03:31 PST --- The root cause is bug 6336, and was already fixed in 2.061head. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6841] writeln problem with array of tuples
http://d.puremagic.com/issues/show_bug.cgi?id=6841 Andrej Mitrovic changed: What|Removed |Added Status|NEW |RESOLVED CC||andrej.mitrov...@gmail.com Resolution||FIXED --- Comment #3 from Andrej Mitrovic 2012-12-02 10:16:57 PST --- OP sample now works. If there is some other compiler problem please file a new bug (I don't see this error either "std/array.d(460): Error: a[0u] isn't mutable"). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6841] writeln problem with array of tuples
http://d.puremagic.com/issues/show_bug.cgi?id=6841 bearophile_h...@eml.cc changed: What|Removed |Added Component|Phobos |DMD --- Comment #2 from bearophile_h...@eml.cc 2011-10-26 15:12:53 PDT --- (In reply to comment #1) > I think this is a compiler bug. Thank you for your reduction. Then I have modified the 'component' of this bug report from Phobos to DMD. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 6841] writeln problem with array of tuples
http://d.puremagic.com/issues/show_bug.cgi?id=6841 Kasumi Hanazuki changed: What|Removed |Added CC||k.hanaz...@gmail.com --- Comment #1 from Kasumi Hanazuki 2011-10-26 11:41:54 PDT --- This problem reduces to the following case, where dmd rejects ref to struct type with a const field, with error: std/array.d(460): Error: a[0u] isn't mutable I think this is a compiler bug. import std.array; struct A { const(char) c; } void main() { A[] aa; aa.front; } // ref T front(T)(T[] a) // if (!isNarrowString!(T[]) && !is(T[] == void[])) // { // assert(a.length, "Attempting to fetch the front of an empty array of " ~ // typeof(a[0]).stringof); // return a[0]; // ** std/array.d(460) // } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---