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 » IsNullInstance() for Callback
Re: IsNullInstance() for Callback [message #1656 is a reply to message #1652] Sat, 11 March 2006 18:46 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
hojtsy wrote on Sat, 11 March 2006 11:02

How about adding a IsValid() method which would return the same value as operator bool(). I like producing self-describing code, but using this bool operator needs more code comments.



Hm, would you comment

void (*f)() = NULL;
...........

if(f) {
}

?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Next Topic: what KillPostCallback is suppose to do
Goto Forum:
  


Current Time: Mon Aug 25 12:46:59 CEST 2025

Total time taken to generate the page: 0.05794 seconds