Can D be cute? (Qt)

Nick Sabalausky a at a.a
Sat May 8 13:06:25 PDT 2010

"Jacob Carlborg" <doob at> wrote in message 
news:hs3su9$c7k$1 at
> I've read the two links bearophile posted and I think that Qt signals and 
> slots look similar to C# events. This can easily be implemented using 
> delegates. Basically create a new template type (a struct for example) 
> called Event. Event contains a data structure (a linked list for example) 
> of delegates. Then you have a function that adds new delegates to the data 
> structure and finally a function that calls all the delegates in the data 
> structure.

When I looked into Qt, that was my impression as well. Seemed like a 
slightly more clumbsy/awkward version of C#'s events. That plus D's 
reflection (or at least an improved version of D's reflection anyway) seems 
to cover all the bases. But then, I'm no Qt expert. 

More information about the Digitalmars-d mailing list