[Issue 6521] New: writeln(const(tuple)) doesn't show the field values

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 17 07:49:08 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6521

           Summary: writeln(const(tuple)) doesn't show the field values
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2011-08-17 07:49:07 PDT ---
import std.stdio: writeln;
import std.typecons: tuple;
void main() {
    auto r1 = tuple(1);
    writeln(r1);
    const r2 = tuple(1);
    writeln(r2);
}


2.055beta prints:

Tuple!(int)(1)
const(Tuple!(int))


But I'd like to see the values of the fields (1) in the second case too.

-- 
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