[Issue 2844] New: Result of getMembers cannot be used because of const

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Apr 16 17:42:59 PDT 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 at digitalmars.com
        ReportedBy: daniel.keep+d.puremagic.com at 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.


-- 



More information about the Digitalmars-d-bugs mailing list