In C++ we know that a global object is externally linked by default except a const global object that is internally linked by default. What is the rationale behind this ? I understand that these default behaviors can be overridden but what is the rationale behind these behaviors ?
Asked
Active
Viewed 52 times
2
-
1Is this question why the language is designed this way? Or what rule in the language says this is the case? – templatetypedef Aug 11 '15 at 22:01
-
I guess a language cannot be designed without a rationale in mind. So, I am interested in in knowing that rationale – Ujjwal Aryan Aug 11 '15 at 22:03
-
It's all in Stroustrup, *The Annotated C++ Reference Manual.* – user207421 Aug 12 '15 at 01:50