Const sucks

Walter Bright newshound1 at digitalmars.com
Mon Sep 10 21:12:20 PDT 2007


Robert Fraser wrote:
> That worries me (not that case in particular, but general constness +
> classes). My coding style tends to use a lot of invariant objects
> (for thread safety reasons), so I get the feeling that the inability
> to *easily* express a mutable reference to a constant class will bite
> me like a ferret.

It worries me in the abstract, but I've not been able to find a real 
case where it matters.



More information about the Digitalmars-d mailing list