Click here to Skip to main content
15,922,145 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Registry Reading with CRegKey Pin
naradaji6-Feb-03 4:04
naradaji6-Feb-03 4:04 
Generalcreating a grayscale "rainbow" in code Pin
ns6-Feb-03 3:17
ns6-Feb-03 3:17 
GeneralRe: creating a grayscale "rainbow" in code Pin
David Chamberlain6-Feb-03 10:18
David Chamberlain6-Feb-03 10:18 
GeneralRe: creating a grayscale "rainbow" in code Pin
ns7-Feb-03 5:05
ns7-Feb-03 5:05 
GeneralRe: Windows Service and MAPIInitialize() Pin
6-Feb-03 3:08
suss6-Feb-03 3:08 
GeneralRecurrence detection Pin
RChin6-Feb-03 2:09
RChin6-Feb-03 2:09 
Generalwhat is the question? Pin
6-Feb-03 2:34
suss6-Feb-03 2:34 
GeneralRe: what is the question? Pin
RChin6-Feb-03 3:43
RChin6-Feb-03 3:43 
GeneralRe: what is the question? Pin
AlexO6-Feb-03 4:08
AlexO6-Feb-03 4:08 
GeneralPrgramatic Control of Toolbar Pin
Jawache6-Feb-03 1:51
Jawache6-Feb-03 1:51 
GeneralRe: Prgramatic Control of Toolbar Pin
KarstenK6-Feb-03 2:23
mveKarstenK6-Feb-03 2:23 
GeneralRe: Prgramatic Control of Toolbar Pin
Jawache6-Feb-03 3:48
Jawache6-Feb-03 3:48 
GeneralGradient Progress Bar Pin
Ambit6-Feb-03 1:50
Ambit6-Feb-03 1:50 
GeneralRe: Gradient Progress Bar Pin
Kayembi6-Feb-03 9:04
Kayembi6-Feb-03 9:04 
GeneralRe: Gradient Progress Bar Pin
Chris Richardson6-Feb-03 18:52
Chris Richardson6-Feb-03 18:52 
GeneralRe: Gradient Progress Bar Pin
Ambit7-Feb-03 5:06
Ambit7-Feb-03 5:06 
General#define Pin
Rage6-Feb-03 1:30
professionalRage6-Feb-03 1:30 
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

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.