3 ms·
Then those would be global constants not global variables.
by partycoder 8y ago
Then those would be global constants not global variables.
- nradov 8y agoConceptually yes, but some languages don't have distinct constructs for constants and just use variables (sometimes even mutable) for everything.
- kyberias 8y agoIn many programming languages, "constants" are compile-time and therefore cannot be used for holding command-line parameter value.
- partycoder 8y agoThe only invariant of a constant is that it remains constant. The way that abstraction is represented is implementation specific. Compiler generated constants can still change, because registers and memory are mutable.