Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/12/02 13:08
Read: times


 
#29072 - RE: Define Vs Constant Luca
do you believe that a variable with a const qualifier should automatically go in code?
Evidently you are infected with a PC or K&R virus.
It would be a waste of memory (no problem with a PC) to make constants go into code.
1) if it goes into ROM, what is the difference, regardless of implementattion you will need to change the C source to change the message.
2) if it is copied into RAM, you waste a precious resource.
3) if you are trying to overwrite a const, you are violating all principles.

Erik

List of 12 messages in thread
TopicAuthorDate
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      

Back to Subject List