Only one signal per object?
    Justin Whear 
    justin at economicmodeling.com
       
    Tue Oct 11 10:12:56 PDT 2011
    
    
  
>From the docs:
"Different signals can be added to a class by naming the mixins."
So I think something like this ought to work:
mixin Signal!(string) onBlah;
mixin Signal!(int, int) onClicketyClick;
Peter Ravinovich wrote:
> Is there a way to have several signals per object?
> 
> The example in std.signal seams to suggest that only one signal per object
> can be emmited. Is it possible to have several events launched as it's
> possible in .NET?
> 
> For example, bind one object to onClick and another to onKeyUp.
> 
> Thanks
    
    
More information about the Digitalmars-d-learn
mailing list