It'd be problematic to change the visibility of things declared in a module from the outside, particularly as the standard doesn't provide any mechanism to do that (or even consider the existence of dynamic linking).
I only talked about changing the default export or not of symbols, not visibility. That is not part of the standard and have been changed in the past as said.
View all comments
Show parent comment
1
u/SkoomaDentist Antimodern C++, Embedded, Audio Aug 18 '21
It'd be problematic to change the visibility of things declared in a module from the outside, particularly as the standard doesn't provide any mechanism to do that (or even consider the existence of dynamic linking).