From: Niklas Frykholm Date: 2002-02-02T03:14:59+09:00 Subject: Re: [GUI] Signal/slot pattern in ruby [Thomas S�ndergaard]: >> I think the signal/slot mechanism in Qt is the most elegant basic >> mechanism. (The other options are AFAIK: callbacks, observers and >> subclassing.) > > Maybe I'm ignorant, but isn't this quite close to the Observer pattern, > which you list as an alternative? I guess the difference (as I see it) is that an observer is an object, while a slot is a method. With the observer pattern you run into problems if the same object should observe several things. Then you have to create "proxy" objects that do nothing but forward the message to the real recipient. // Niklas