April 17, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2844

           Summary: Result of getMembers cannot be used because of const
           Product: D
           Version: 2.027
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: daniel.keep+d.puremagic.com@gmail.com


(Note: report is for DMD 2.028.)

The getMembers and xgetMembers functions in ClassInfo and TypeInfo_Struct are more or less useless because they return const(MemberInfo[]).  None of the methods of MemberInfo are const, and so cannot be called unless you explicitly cast away const-ness.


--