www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10100] New: Identifiers with double underscores and allMembers

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 puremagic.com
        ReportedBy: maxim maxim-fomin.ru



---
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: -------
May 16 2013