[Issue 5028] Problem with named mixins in base class and derived class

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 24 12:11:54 PST 2013


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



--- Comment #4 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-02-24 23:11:51 MSK ---
(In reply to comment #3)
> I ran into this bug using std.signals and is currently a blocker for me,
> making std.signals useless, so I must use another mechanism. This is a example:
> 
> import std.signals;
> 
> class ClassA
> {
>     public mixin Signal!(int) addNumber1;
> }
> 
> class ClassB : ClassA
> {
>     public mixin Signal!(int) addNumber2;
> }

A workaround:
Add dummy signal `private mixin Signal!(int) __dummy;` to `ClassA`.

-- 
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