[cs23021] the executability of named constant declaration statements
Mikhail Nesterenko
mikhail at cs.kent.edu
Thu Feb 9 22:55:41 EST 2012
CSI students,
I did some more reading on it. In the language, it is not explicitly
stated that the lines like the one below never generate the executable
code. In fact, on (rather obscure) occasions they might.
const int MYCONST=23;
However, Stroustrup (the creator of the language) still recommends
putting declarations into the header files stating that the potential
overhead created by generating executable statements is negligible.
Thanks,
--
Mikhail
More information about the cs23021-2
mailing list