I think you have mutable confused with volatile, which is what you would use for variables who's value can change in unexpected ways that might trip up the compiler's optimizations. Mutable was added specifically to overcome the problem you described and has no effect on the compiler's optimization.
March 27, 2007, 4:12 p.m. - Steven
I think you have mutable confused with volatile, which is what you would use for variables who's value can change in unexpected ways that might trip up the compiler's optimizations. Mutable was added specifically to overcome the problem you described and has no effect on the compiler's optimization.