Bug 2556 – Property classinfo needs better documentation (RTTI, typeof, typeid, runtime type information)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2009-01-05T06:01:00Z
Last change time
2014-02-15T13:13:09Z
Keywords
spec
Assigned to
nobody
Creator
helmutduregger
Blocks
677

Comments

Comment #0 by helmutduregger — 2009-01-05T06:01:39Z
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.
Comment #1 by bugzilla — 2010-11-09T12:21:38Z