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: nob...@puremagic.com ReportedBy: andrej.mitrov...@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrov...@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: -------