[Issue 2985] New: Add enumToString and enumFromString to std.conv

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 15 15:37:42 PDT 2009


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

           Summary: Add enumToString and enumFromString to std.conv
           Product: D
           Version: 2.029
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: rsinfu at gmail.com


Created an attachment (id=368)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=368)
Adds enumToString and enumFromString

The patch adds new template functions enumToString and enumFromString to
std.conv. These functions convert between an enum member value and its name,
and do not require that enums should be defined by some template (cf.
defineEnum).

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