[Issue 3989] New: stringof of nested enums doesn't give sufficient information

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 20 03:15:26 PDT 2010


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

           Summary: stringof of nested enums doesn't give sufficient
                    information
           Product: D
           Version: 2.040
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: e.insafutdinov at gmail.com


--- Comment #0 from Eldar Insafutdinov <e.insafutdinov at gmail.com> 2010-03-20 03:13:15 PDT ---
class Foo
{
    enum Boo
    {
        X
    }
}

pragma(msg, Foo.Boo.stringof);

prints:

Boo

I can't use it for meta-programming purposes, as it does not specifies the
type. At the very least it should return "Foo.Boo".

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