digitalmars.D.bugs - [Issue 5951] New: writeln(AAbyValue()) doesn't show the values
- d-bugmail puremagic.com (28/28) May 07 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5951
- d-bugmail puremagic.com (18/18) May 08 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5951
http://d.puremagic.com/issues/show_bug.cgi?id=5951 Summary: writeln(AAbyValue()) doesn't show the values Product: D Version: unspecified Platform: x86 OS/Version: Windows Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: druntime AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc --- Comment #0 from bearophile_hugs eml.cc 2011-05-07 16:24:13 PDT --- import std.stdio; void main() { int[int] hash = [1:2, 3:4]; auto vals = hash.byValue(); writeln(vals); } With DMD 2.053beta at runtime the writeln prints: int delegate(int delegate(ref int)) Expected: the sequence of the items, something like: [2; 4] See also bug 3813 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 07 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5951 kennytm gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kennytm gmail.com Resolution| |DUPLICATE --- Comment #1 from kennytm gmail.com 2011-05-08 00:07:33 PDT --- Please make this request WONTFIX. AA.byValue simply returns a delegate as shown in the report. writeln doesn't know if the delegate is from byValue, or just a normal delegate, not intended for iteration. The correct solution is to make byValue a forward range. And please stop filing the same bug again and again :). You have already filed bug 4704 which item #2 is exactly the same as this one. *** This issue has been marked as a duplicate of issue 4704 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 08 2011