[Issue 6892] Formatted write with specified length of enum member

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 27 22:45:50 PST 2012


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


Ali Cehreli <acehreli at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |acehreli at yahoo.com


--- Comment #1 from Ali Cehreli <acehreli at yahoo.com> 2012-02-27 22:45:48 PST ---
The following must be another manifestation of the same bug:

import std.stdio;

void main()
{
    enum E { e0 }

    foreach (format; [ "%s", "%d", "%u", "%3.7g", "%x", "%b" ]) {
        writefln(format, E.e0);
    }
}

Outputs:

e0
e0
e0
e0
e0
e0

Ali

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