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

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 tree / graph
Reported: 2009年01月05日 06:01 UTC by helmutduregger
Modified: 2014年02月15日 13:13 UTC (History)
2 users (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

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.
Comment 1 Walter Bright 2010年11月09日 12:21:38 UTC
http://www.dsource.org/projects/phobos/changeset/2143 


AltStyle によって変換されたページ (->オリジナル) /