[Issue 2556] New: Property classinfo needs better documentation (RTTI, typeof, typeid, runtime type information)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 5 04:01:41 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2556

           Summary: Property classinfo needs better documentation (RTTI,
                    typeof, typeid, runtime type information)
           Product: D
           Version: unspecified
          Platform: All
               URL: http://www.digitalmars.com/d/1.0/property.html
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: helmutduregger at gmx.at
OtherBugsDependingO 677
             nThis:


The documentation at http://www.digitalmars.com/d/1.0/property.html does not
list classinfo at all.

The description at http://www.digitalmars.com/d/1.0/phobos/object.html is
difficult to find for beginners and it is unclear how to compare for equality
or derived classes (the doc about opCmp mentions a runtime error for
Object.opCmp, and it is unclear what Object.opEqual compares).

http://www.prowiki.org/wiki4d/wiki.cgi?HowTo/RealtimeTypeInformation mentions
ClassInfo's property .name which seems reasonable for checking equality.


-- 



More information about the Digitalmars-d-bugs mailing list