[Issue 2997] allMembers does not return interface members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 4 18:33:55 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=2997


Hoenir <mrmocool at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #373 is|0                           |1
           obsolete|                            |


--- Comment #2 from Hoenir <mrmocool at gmx.de> 2010-02-04 18:33:54 PST ---
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: -------


More information about the Digitalmars-d-bugs mailing list