??? 02/23/08 18:45 Read: times |
#151344 - Obviously Responding to: ???'s previous message |
Michael Karas said:
One reason to use "const" and probably the original intent of the attribute .. is to tell the compiler that some variable is not to be allowed to be changeable in the code sequence by lines of code. Obviously. But is that just to protect the non-changing element from bad code? Because if it's a constant, by definition it's not really a variable. And the easiest way to make sure it doesn't change is to put it in an area of memory that can't (usually) change: code memory. Regards, Craig Steiner |