Summary: Textual representation of struct that doesn't define
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos

--- Comment #0 from 2010-08-29 15:57:55 PDT ---
This D2 program:

import std.stdio: writeln;
struct Foo { int x; string s; }
void main() {
    Foo f = Foo(1.5, "hello");

With DMD 2.048 it prints:

When a struct doesn't define a toString() I'd like (mostly for debugging
purposes) writeln/format to create a bit better textual representation, for
example it may show fields values:

Foo(x=1.5, s="hello")

See also bug 3813

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to