www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1917] New: __traits(allMembers) does not return elements with specified protection

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1917

           Summary: __traits(allMembers) does not return elements with
                    specified protection
           Product: D
           Version: 2.010
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: dhasenan gmail.com


__traits(allMembers, Rect) returns [b getY print toString toHash opCmp
opEquals] here:

class Rect
{
    private int a;
    int b;
    public int getX()
    {
        return 4;
    }
    int getY()
    {
        return 4;
    }
}


void main()
{
    writefln(__traits(allMembers, Rect));
}


-- 
Mar 12 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1917





------- Comment #1 from dhasenan gmail.com  2008-11-16 08:08 -------
I'm not able to reproduce this in dmd2.019 or ldc2, so I'm marking it as fixed.


-- 
Nov 16 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1917


dhasenan gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from dhasenan gmail.com  2008-11-16 08:09 -------
I'm not able to reproduce this in dmd2.019 or ldc2, so I'm marking it as fixed.


-- 
Nov 16 2008