January 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7326

           Summary: write interprets enum with byte backing type as a
                    character
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-01-20 09:57:24 PST ---
import std.stdio;

enum X : byte
{
    Foo = 65,
}

void main()
{
    X x;
    writeln(x);  // writes 'A'
    writeln(cast(byte)x);  // writes 65
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 19, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7326


klickverbot <code@klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |code@klickverbot.at
         Resolution|                            |FIXED


--- Comment #1 from klickverbot <code@klickverbot.at> 2012-04-19 08:43:40 PDT ---
Using DMD 2.059, this prints:
---
Foo
65
---

Closing as fixed.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------