[Issue 10100] New: Identifiers with double underscores and allMembers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 16 19:38:04 PDT 2013


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

           Summary: Identifiers with double underscores and allMembers
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: maxim at maxim-fomin.ru


--- Comment #0 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-05-16 19:38:03 PDT ---
After fixing issue 10096 following code

struct S
{
   void __aggrPostBlit(){}
   void __aggrPostBlit_blah(){}
   this(int x){}
}

pragma(msg, __traits(allMembers, S));

void main(){}

prints only __ctor

I think either dmd should grep special names from sources (and not just compare
first two characters for underscores) or ban __identifiers at all.

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