Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Callbacks and Timers » Possible improvements to U++ callbacks
Re: Possible improvements to U++ callbacks [message #18254 is a reply to message #18242] Fri, 19 September 2008 08:16 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
cas_ wrote on Thu, 18 September 2008 13:34


What if you delete an object, which is pointed by a callback placed in some chain? Some existing signal/slot libraries (like libsigc++) give you even possibility to handle such situations automatically (in sigc++ it's enough to derive your class from sigc::trackable).



Actually, to some degree, this is possible in U++ too - see pteback family.

Quote:


What do you think about improving U++ callbacks in this way? Would you find it useful? It should be possible to extend current implementation without losing backward compatibility.



Well, I think this is a good idea, however I see very limited benefit. In fact, even the chaining is sort of redundant.

In reality, I do not remember a usecase where I would have been sorry of not having what you suggest. And simplicity is a virtue of its own Smile

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I stop the timer?
Next Topic: Problem with non-blocking mode
Goto Forum:
  


Current Time: Tue Aug 26 01:18:15 CEST 2025

Total time taken to generate the page: 0.06691 seconds