[Issue 10814] Formatting string-based enum prints its name instead of its value

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 31 03:42:43 PDT 2014


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


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com
           Severity|normal                      |enhancement


--- Comment #3 from monarchdodra at gmail.com 2014-03-31 03:42:37 PDT ---
(In reply to comment #0)
> Alternatively one would write a helper template, e.g. toBaseValue(enumVal),
> which would return the base type value of an enum:

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

In particular, it deals with your specific problem.

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