Click here to Skip to main content
15,909,051 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: static variable Pin
ThatsAlok23-Aug-07 20:04
ThatsAlok23-Aug-07 20:04 
GeneralRe: static variable Pin
George_George23-Aug-07 20:29
George_George23-Aug-07 20:29 
GeneralRe: static variable Pin
User 58385223-Aug-07 20:06
User 58385223-Aug-07 20:06 
GeneralRe: static variable Pin
ThatsAlok23-Aug-07 20:10
ThatsAlok23-Aug-07 20:10 
GeneralRe: static variable Pin
User 58385223-Aug-07 20:15
User 58385223-Aug-07 20:15 
GeneralRe: static variable Pin
George_George23-Aug-07 20:22
George_George23-Aug-07 20:22 
GeneralRe: static variable Pin
George_George23-Aug-07 20:27
George_George23-Aug-07 20:27 
GeneralRe: static variable Pin
ThatsAlok23-Aug-07 20:37
ThatsAlok23-Aug-07 20:37 
George_George wrote:
How do you think returning static variable is similar to Singleton pattern


just on basic.. concept of Singleton pattern says that.. there should only copy exist for any variable.. look more in detail here:-
http://www.codeproject.com/cpp/singletonrvs.asp[^]

"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixture


cheers,
Alok Gupta
VC Forum Q&A :- I/IV
Support CRY- Child Relief and You

GeneralRe: static variable Pin
George_George23-Aug-07 20:55
George_George23-Aug-07 20:55 
GeneralRe: static variable Pin
ThatsAlok24-Aug-07 7:51
ThatsAlok24-Aug-07 7:51 
GeneralRe: static variable Pin
George_George23-Aug-07 20:19
George_George23-Aug-07 20:19 
GeneralRe: static variable Pin
User 58385223-Aug-07 20:29
User 58385223-Aug-07 20:29 
GeneralRe: static variable Pin
George_George23-Aug-07 20:31
George_George23-Aug-07 20:31 
GeneralRe: static variable Pin
User 58385223-Aug-07 20:36
User 58385223-Aug-07 20:36 
GeneralRe: static variable Pin
George_George23-Aug-07 20:51
George_George23-Aug-07 20:51 
GeneralRe: static variable Pin
User 58385223-Aug-07 20:55
User 58385223-Aug-07 20:55 
GeneralRe: static variable Pin
George_George23-Aug-07 22:27
George_George23-Aug-07 22:27 
AnswerRe: static variable Pin
ghle24-Aug-07 15:28
ghle24-Aug-07 15:28 
AnswerRe: static variable Pin
ghle25-Aug-07 4:04
ghle25-Aug-07 4:04 
GeneralRe: static variable Pin
George_George25-Aug-07 22:08
George_George25-Aug-07 22:08 
AnswerRe: static variable Pin
BadKarma23-Aug-07 22:10
BadKarma23-Aug-07 22:10 
GeneralRe: static variable Pin
George_George23-Aug-07 22:36
George_George23-Aug-07 22:36 
GeneralRe: static variable Pin
BadKarma23-Aug-07 23:24
BadKarma23-Aug-07 23:24 
GeneralRe: static variable Pin
George_George23-Aug-07 23:39
George_George23-Aug-07 23:39 
GeneralRe: static variable Pin
toxcct24-Aug-07 1:42
toxcct24-Aug-07 1:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.