Are any GUI libs going to make use of signals/slots?

Lutger lutger.blijdestijn at gmail.com
Sat Dec 9 18:56:28 PST 2006


Craig Black Wrote:

> 
> "Chris Miller" <chris at dprogramming.com> wrote in message 
> news:op.tj42pfdcpo9bzi at tanu...
> > On Tue, 05 Dec 2006 18:54:19 -0500, Craig Black <cblack at ara.com> wrote:
> >
> >> So you are satisfied with the functionality you have with your current
> >> design.  OK.  As far as the example that you cited, this seems to be a
> >> specific case.  In this case, would it not be a simple matter to 
> >> maintain a
> >> reference to the object that you don't want to be deallocated?
> >>
> >
> > But I told the timer to by registering a callback.. *shrug*
> >
> > I guess if majority of people prefer std.signals I'd switch; I might put 
> > up a poll on the DFL forum.
> 
> I'm not saying you should switch.  It's just worth considering, that's all. 
> If you feel that your current design is better, then no problem.
> 
> However, slots and signals are widely used in C++ without language support. 
> With language support this approach is all the more attractive  It would be 
> nice if all GUI libraries written in D used a standard communication 
> mechanism.  Perhaps we could even work toward some sort of interoperability.
> 
> -Craig
> 

But isn't the beauty of signals in D that slots are plain delegates that 'just work'. There is already interoperability in this way. Except for acting as a weak reference, signals are the same as arrays of delegates. 
Or have I missed your point?





More information about the Digitalmars-d-dwt mailing list