[Issue 4261] Bad textual printing of enums

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 31 18:58:02 PDT 2010


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



--- Comment #4 from bearophile_hugs at eml.cc 2010-08-31 18:57:48 PDT ---
What I am saying in bug 3999 is relative to just the case where the enum has a
EnumTag. In this case I prefer the enum to be like a typedef (as the C++0x
"enum class") and require a cast if you want to use/compare it as/to the base
type.

In your example red, green and blue are inside an anonymous enum (it lacks a
EnumTag), so in this case the cast is not necessary. So that code is not
affected.

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