On Sunday, 16 February 2014 at 06:28:45 UTC, Jonathan M Davis wrote:
On Sunday, February 16, 2014 03:25:08 Stanislav Blinov wrote:
On Saturday, 15 February 2014 at 04:03:51 UTC, Adam D. Ruppe
wrote:

What about a library solution for something like C++-esque
mutable?

You're casting away const if you do that, and that's precisely what you shouldn't be doing. const is for _physical_ constness and should never be used if you want logical constness...

I hear you. In this case, one might ask why casting away const is allowed at all :)

Reply via email to