| ??? 09/12/02 15:24 Read: times |
#29083 - RE: Const in code |
"I'm interested in opinions on this: do you believe that a variable with a const qualifier should automatically go in code?"
Let me repeat my earlier quote from K&R: "the compiler should warn if it spots an attempt to modify such a variable, but the effect of const is otherwise implementation-defined (see K&R)." I also said, "const is commonly used by embedded compilers to indicate fixed values to go into ROM;" For once, I omitted to add "you need to read the manual for your particular processor" |
| Topic | Author | Date |
| Define Vs Constant | 01/01/70 00:00 | |
| RE: Define Vs Constant | 01/01/70 00:00 | |
| RE: Define Vs Constant | 01/01/70 00:00 | |
| RE: Define Vs Constant (Andy) | 01/01/70 00:00 | |
| RE: Define Vs Constant Luca | 01/01/70 00:00 | |
| RE: Define Vs Constant (Andy) | 01/01/70 00:00 | |
| RE: Define Vs Constant (Luca | 01/01/70 00:00 | |
| RE: Const in code | 01/01/70 00:00 | |
| RE: Const in code, Andy | 01/01/70 00:00 | |
| RE: Const in code, Andy | 01/01/70 00:00 | |
| RE: Const in data, Luca | 01/01/70 00:00 | |
RE: Const in code, Luca | 01/01/70 00:00 |



