D2 code: import std.stdio; enum E : int { A, B } void main() { writeln(E.B); } Nice runtime output, DMD 2.057head: B A second D2 program: import std.stdio; enum : int { A, B } void main() { writeln(B); } Runtime output, DMD 2.057head: 1 Is it possible for writeln() to write the handy enum name "B" in this case too?
Maybe related to issue 5004
It can't work like this.