Thread overview | |||||
---|---|---|---|---|---|
|
November 09, 2011 [Issue 6916] New: writeln of nameless enum | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6916 Summary: writeln of nameless enum Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2011-11-08 19:23:58 PST --- 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? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 16, 2011 [Issue 6916] writeln of nameless enum | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6916 --- Comment #1 from bearophile_hugs@eml.cc 2011-11-15 23:54:16 PST --- Maybe related to issue 5004 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 17, 2011 [Issue 6916] writeln of nameless enum | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6916 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from bearophile_hugs@eml.cc 2011-11-17 15:48:09 PST --- It can't work like this. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation