digitalmars.D.bugs - [Issue 2997] New: allMembers does not return interface members
- d-bugmail puremagic.com (30/30) May 17 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2997
- d-bugmail puremagic.com (14/14) May 17 2009 http://d.puremagic.com/issues/show_bug.cgi?id=2997
- d-bugmail puremagic.com (23/23) Feb 04 2010 http://d.puremagic.com/issues/show_bug.cgi?id=2997
- d-bugmail puremagic.com (11/11) Feb 06 2010 http://d.puremagic.com/issues/show_bug.cgi?id=2997
- d-bugmail puremagic.com (7/7) Jan 01 2012 http://d.puremagic.com/issues/show_bug.cgi?id=2997
- d-bugmail puremagic.com (11/11) Jan 11 2012 http://d.puremagic.com/issues/show_bug.cgi?id=2997
http://d.puremagic.com/issues/show_bug.cgi?id=2997 Summary: allMembers does not return interface members Product: D Version: 2.030 Platform: PC OS/Version: All Status: NEW Keywords: patch Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: rsinfu gmail.com Created an attachment (id=372) --> (http://d.puremagic.com/issues/attachment.cgi?id=372) This patch should fix the problem. -------------------- abstract class B { void foo(); } interface I { void bar(); } abstract class C : B, I {} pragma(msg, __traits(allMembers, C).stringof); -------------------- The above code prints: -------------------- ["foo","toString","toHash","opCmp","opEquals","Monitor","factory"] -------------------- There is no "bar" in the output. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 17 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2997 Shin Fujishiro <rsinfu gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- obsolete| | --- Created an attachment (id=373) --> (http://d.puremagic.com/issues/attachment.cgi?id=373) Fixed a typo. I'm sorry - there's a typo in the patch 372 :-( -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 17 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2997 Hoenir <mrmocool gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- obsolete| | Created an attachment (id=561) patch for r365 Since I played around with this a little bit I thought I'd post the updated patch for current svn r365. I wonder if there is a real world use case for this one. But I think so. If you have an abstract base class that implements some interfaces but leaves some of the functions out for its base classes and you want to know which functions all base classes have in common you need this fix to also get the interface ones. interface I { void bar(); } interface I2 { void bar2(); } abstract class B:I,I2 { void foo(); void bar();} pragma(msg, __traits(allMembers, B)); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 04 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2997 Trass3r <mrmocool gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mrmocool gmx.de Of course the last two occurences of "base class" must be "sub class" in my previous comment ;) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 06 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2997 New patch based on git master: https://github.com/D-Programming-Language/dmd/pull/594 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 01 2012
http://d.puremagic.com/issues/show_bug.cgi?id=2997 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED 15:13:54 PST --- https://github.com/D-Programming-Language/dmd/commit/5cf392dd185107454292f98143c26738f0c53f7c -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 11 2012