On 7/14/2016 11:49 AM, Steven Schveighoffer wrote:
In C++, the compiler has to reload x, because it may have changed.

That's right. I learned that the hard way, when the original optimizer would assume that x hadn't changed. It broke a surprising amount of code.

It also means that the utility of const in C++ is extremely limited.

Reply via email to