"Jacob Carlborg" <[email protected]> wrote in message news:[email protected]... > > 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.
