Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 15, 2009 [Issue 2836] New: Navigate from ClassInfo to TypeInfo | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=2836 Summary: Navigate from ClassInfo to TypeInfo Product: D Version: 2.026 Platform: PC OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: benoit@tionex.de To retrieve an instance of TypeInfo from an object instance at runtime. Object obj = getSomething(); // returns a derived instance TypeInfo info = typeid(obj) // does not work, only compile time TypeInfo info = obj.classinfo.????; // how to navigate to TypeInfo? ClassInfo shall have an additional field, that make that navigation possible. A NG discussion was here: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=88011 -- |
April 15, 2009 [Issue 2836] Navigate from ClassInfo to TypeInfo | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2836 ------- Comment #1 from maxmo@pochta.ru 2009-04-15 04:17 ------- I think, ClassInfo can just inherit from TypeInfo. -- |
April 15, 2009 [Issue 2836] Navigate from ClassInfo to TypeInfo | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2836 ------- Comment #2 from tomas@famolsen.dk 2009-04-15 04:54 ------- Then TypeInfo_Class and TypeInfo_Interface needs to be merged as well. -- |
May 12, 2009 [Issue 2836] Navigate from ClassInfo to TypeInfo | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=2836 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2009-05-12 10:45:19 PDT --- Done with dmd 1.045 and 2.030. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation