08-04-2025, 05:09 PM
i have moved more and more away from using const at all. because of examples like just displayed.
suppose the programmer does needs variable "c" changed. why bother defining it as constant in the first place?
it's understood why there have to be labels. such as color names. instead of hairy long integers. that in some programs. could be written as goggly hexadecimal.
in a program that's not even 1000 lines of code. defining something as constant. could cause a bug difficult to track down. it happened to me once. but with trying to use somebody else's "include" file.
suppose the programmer does needs variable "c" changed. why bother defining it as constant in the first place?
it's understood why there have to be labels. such as color names. instead of hairy long integers. that in some programs. could be written as goggly hexadecimal.
in a program that's not even 1000 lines of code. defining something as constant. could cause a bug difficult to track down. it happened to me once. but with trying to use somebody else's "include" file.

