std.signal woes :/

Damian damianday at hotmail.co.uk
Sat Feb 23 09:01:47 PST 2013


Ok signals work fine, until I use them in a descendant class.

Snippet:
-----------------
import std.signals;

class ClassA
{
	public mixin Signal!(int) addNumber1;
}

class ClassB : ClassA
{
	public mixin Signal!(int) addNumber2;
}

Error:
\dmd2\src\phobos\std\signals.d(0,0): Error: function 
main.ClassB.Signal!(int).emit cannot override final function 
main.ClassA.Signal!(int).emit (moooo)


Is this expected behavior or a bug in my code?


More information about the Digitalmars-d-learn mailing list