[Issue 5951] New: writeln(AAbyValue()) doesn't show the values

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 7 16:28:08 PDT 2011


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 at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at 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: -------


More information about the Digitalmars-d-bugs mailing list