Transitive const sucks

Walter Bright newshound1 at digitalmars.com
Wed Sep 12 11:49:42 PDT 2007


Janice Caron wrote:
> It's a solution which doesn't scale.
> 
> And there goes encapsulation...

At least for this example, the same issue exists when attempting to do 
"const-correctness" in C++. You cannot paste const on at the top level, 
it has to be put in at every level underneath it.



More information about the Digitalmars-d mailing list