Click here to Skip to main content
15,905,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: #define Pin
Christian Graus6-Feb-03 1:59
protectorChristian Graus6-Feb-03 1:59 
GeneralRe: #define Pin
Anders Molin6-Feb-03 8:33
professionalAnders Molin6-Feb-03 8:33 
GeneralRe: #define Pin
Christian Graus6-Feb-03 9:38
protectorChristian Graus6-Feb-03 9:38 
GeneralRe: #define Pin
Anders Molin6-Feb-03 9:58
professionalAnders Molin6-Feb-03 9:58 
GeneralRe: #define Pin
Christian Graus6-Feb-03 10:29
protectorChristian Graus6-Feb-03 10:29 
GeneralRe: #define Pin
Joaquín M López Muñoz6-Feb-03 9:28
Joaquín M López Muñoz6-Feb-03 9:28 
GeneralRe: #define Pin
Christian Graus6-Feb-03 9:39
protectorChristian Graus6-Feb-03 9:39 
GeneralRe: #define Pin
Joaquín M López Muñoz6-Feb-03 10:03
Joaquín M López Muñoz6-Feb-03 10:03 
Well, if one gets really anal about it, the standard actually does not guarantee that the expression does not get executed at run time. One can always write en evil compiler that does the calculation at run-time just for fun and then throws the value away.
What my example shows is that any real compiler has to calculate the value of constant expressions.

PS: Even this is not entirely true if one imagines a pyschedelic compiler that does not reserve static memory for fixed sized arrays and prefers to do it at run-time. Or also, a conforming compiler can just translate to a high-level language and avoid calculating any constant expression at all.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: #define Pin
Christian Graus6-Feb-03 10:28
protectorChristian Graus6-Feb-03 10:28 
GeneralRe: #define Pin
Joaquín M López Muñoz6-Feb-03 10:31
Joaquín M López Muñoz6-Feb-03 10:31 
GeneralRe: #define Pin
Paul M Watt6-Feb-03 19:44
mentorPaul M Watt6-Feb-03 19:44 
GeneralRe: #define Pin
RChin6-Feb-03 2:01
RChin6-Feb-03 2:01 
GeneralRe: #define Pin
Gary Wheeler6-Feb-03 2:04
Gary Wheeler6-Feb-03 2:04 
GeneralRe: #define Pin
Chris Richardson6-Feb-03 18:58
Chris Richardson6-Feb-03 18:58 
Generalobtain SID Pin
rohit.dhamija6-Feb-03 0:53
rohit.dhamija6-Feb-03 0:53 
GeneralRe: obtain SID Pin
Iain Clarke, Warrior Programmer6-Feb-03 6:02
Iain Clarke, Warrior Programmer6-Feb-03 6:02 
QuestionWinXp machine, but WINVER macro is 0x400 ?? Pin
CEx6-Feb-03 0:42
CEx6-Feb-03 0:42 
AnswerRe: WinXp machine, but WINVER macro is 0x400 ?? Pin
HENDRIK R6-Feb-03 1:10
HENDRIK R6-Feb-03 1:10 
AnswerRe: WinXp machine, but WINVER macro is 0x400 ?? Pin
KarstenK6-Feb-03 3:09
mveKarstenK6-Feb-03 3:09 
Generalabout zip file and jar file, urgent Pin
includeh106-Feb-03 0:26
includeh106-Feb-03 0:26 
GeneralRe: about zip file and jar file, urgent Pin
-Dy6-Feb-03 0:50
-Dy6-Feb-03 0:50 
GeneralRe: about zip file and jar file, urgent Pin
Ambit6-Feb-03 1:43
Ambit6-Feb-03 1:43 
GeneralRe: about zip file and jar file, urgent Pin
Mike Nordell6-Feb-03 4:11
Mike Nordell6-Feb-03 4:11 
GeneralRe: about zip file and jar file, urgent Pin
includeh106-Feb-03 5:23
includeh106-Feb-03 5:23 
GeneralRe: about zip file and jar file, urgent Pin
Mike Nordell7-Feb-03 3:55
Mike Nordell7-Feb-03 3:55 

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.