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

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


Reply via email to