D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 2556 - Property classinfo needs better documentation (RTTI, typeof, typeid, runtime type information)
Summary: Property classinfo needs better documentation (RTTI, typeof, typeid, runtime ...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: All All
: P2 normal
Assignee: No Owner
URL: http://www.digitalmars.com/d/1.0/prop...
Keywords: spec
Depends on:
Blocks: 677
  Show dependency treegraph
 
Reported: 2009-01-05 06:01 UTC by helmutduregger
Modified: 2014-02-15 13:13 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description helmutduregger 2009-01-05 06:01:39 UTC
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.