[Issue 11998] writeln with string enum outputs the enum name, not the string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 27 12:41:38 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11998


Peter Alexander <peter.alexander.au at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |peter.alexander.au at gmail.co
                   |                            |m


--- Comment #2 from Peter Alexander <peter.alexander.au at gmail.com> 2014-01-27 12:41:31 PST ---
I think this is by design.

The EnumBaseType just indicates that the enum values can be implicitly
converted to the EnumBaseType. It's not the same as `enum string member =
"printThis";`

I'm not a fan of special casing the output of string enums.

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


More information about the Digitalmars-d-bugs mailing list