Click here to Skip to main content
15,897,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: static const foo = 1 works ?! Pin
Waldermort9-Feb-07 3:10
Waldermort9-Feb-07 3:10 
GeneralRe: static const foo = 1 works ?! Pin
James R. Twine9-Feb-07 3:15
James R. Twine9-Feb-07 3:15 
GeneralRe: static const foo = 1 works ?! Pin
Roger Stoltz9-Feb-07 3:42
Roger Stoltz9-Feb-07 3:42 
GeneralRe: static const foo = 1 works ?! Pin
Waldermort9-Feb-07 4:08
Waldermort9-Feb-07 4:08 
GeneralRe: static const foo = 1 works ?! Pin
Roger Stoltz9-Feb-07 4:10
Roger Stoltz9-Feb-07 4:10 
GeneralRe: static const foo = 1 works ?! Pin
Mr.Brainley9-Feb-07 3:13
Mr.Brainley9-Feb-07 3:13 
GeneralRe: static const foo = 1 works ?! Pin
James R. Twine9-Feb-07 3:19
James R. Twine9-Feb-07 3:19 
AnswerRe: static const foo = 1 works ?! Pin
Waldermort9-Feb-07 3:08
Waldermort9-Feb-07 3:08 
Mr.Brainley wrote:
and realized later that it shouldn't work


Why shouldn't it work?

It's static, meaning all instances share the same varialble, and it's const meaning it will never change. So it's perfectly safe to declare it as you have done.
GeneralRe: static const foo = 1 works ?! Pin
benjymous9-Feb-07 3:20
benjymous9-Feb-07 3:20 
AnswerRe: static const foo = 1 works ?! Pin
benjymous9-Feb-07 3:19
benjymous9-Feb-07 3:19 
AnswerRe: static const foo = 1 works ?! Pin
Michael Dunn9-Feb-07 11:03
sitebuilderMichael Dunn9-Feb-07 11:03 
Questionrobot arm simulation with opengl?? Pin
Mir_As9-Feb-07 2:53
Mir_As9-Feb-07 2:53 
AnswerRe: robot arm simulation with opengl?? Pin
Cedric Moonen9-Feb-07 3:06
Cedric Moonen9-Feb-07 3:06 
GeneralRe: robot arm simulation with opengl?? Pin
Mir_As9-Feb-07 23:23
Mir_As9-Feb-07 23:23 
QuestionFatal Error C1189 Pin
Programm3r9-Feb-07 2:08
Programm3r9-Feb-07 2:08 
AnswerRe: Fatal Error C1189 Pin
James R. Twine9-Feb-07 2:17
James R. Twine9-Feb-07 2:17 
QuestionRe: Fatal Error C1189 Pin
Programm3r9-Feb-07 2:25
Programm3r9-Feb-07 2:25 
AnswerRe: Fatal Error C1189 Pin
James R. Twine9-Feb-07 2:29
James R. Twine9-Feb-07 2:29 
GeneralRe: Fatal Error C1189 Pin
Programm3r9-Feb-07 2:40
Programm3r9-Feb-07 2:40 
GeneralRe: Fatal Error C1189 Pin
James R. Twine9-Feb-07 3:07
James R. Twine9-Feb-07 3:07 
AnswerRe: Fatal Error C1189 Pin
Programm3r9-Feb-07 2:59
Programm3r9-Feb-07 2:59 
QuestionRe: Fatal Error C1189 Pin
prasad_som9-Feb-07 2:18
prasad_som9-Feb-07 2:18 
AnswerRe: Fatal Error C1189 Pin
Programm3r9-Feb-07 2:22
Programm3r9-Feb-07 2:22 
QuestionRe: Fatal Error C1189 Pin
prasad_som9-Feb-07 2:26
prasad_som9-Feb-07 2:26 
GeneralRe: Fatal Error C1189 Pin
Programm3r9-Feb-07 2:32
Programm3r9-Feb-07 2:32 

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.