Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 25th, 2006, 9:17 AM   #11
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
I thought the other method was the more dynamic, personally - the ability to disconnect certain/all signals that are being listened for and having signals disconnected for you when an object that has a connected method is deleted are some of its stronger points.
Cerulean is offline   Reply With Quote
Old Feb 25th, 2006, 10:39 AM   #12
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
Quote:
Originally Posted by Cerulean
I thought the other method was the more dynamic, personally - the ability to disconnect certain/all signals that are being listened for and having signals disconnected for you when an object that has a connected method is deleted are some of its stronger points.
My example is a cut down, limited, educational-only version of the dispatch model. Pydispatcher does everything the signal/slot technique does, but abstracts the event handling code away from the events themselves. The two modules do the same thing, but place the code in different places. Pydispatcher has connect, disconnect and send as separate functions, using any hashable object as an event. The signal/slot recipe bundles this code into a Signal class. I prefer the Pydispatcher method, since it's a more modular approach.
Arevos is offline   Reply With Quote
Old Feb 25th, 2006, 12:25 PM   #13
Dietrich
Professional Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 434
Rep Power: 4 Dietrich is on a distinguished road
Thanks Arevos,

now I get the hang of it!
__________________
I looked it up on the Intergnats!
Dietrich is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:46 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC