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 » Extra libraries, Code snippets, applications etc. » U++ users applications in progress and useful code snippets, including reference examples! » Window without title bar
Re: Window without title bar [message #14134 is a reply to message #14114] Thu, 14 February 2008 16:15 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
Basically it's useless if you have other means of creating single local instance of certain class.
Singleton's are replacement for global variables in pure-object languages where globals are "impossible", I'm not sure why singleton's concept got as far as into C++, where globals are possible.
Not that I suggest to use global variables, avoid them as much as possible, but if you need a global, I don't think there's big reason to mask them as singleton.

Anyway, I can't recall *ever* to use one in C++.
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Sometimes, you don't want to update the GUI...
Next Topic: print multiple postscript/PDF in windows
Goto Forum:
  


Current Time: Sun Apr 28 10:07:25 CEST 2024

Total time taken to generate the page: 0.06227 seconds