Const sucks

Walter Bright newshound1 at digitalmars.com
Mon Sep 10 17:17:48 PDT 2007


Regan Heath wrote:
> In general is this correct for a class reference:
> 
> class Baz { int a; }
> const Baz b;  //neither b nor b.a can be changed

Yes.



More information about the Digitalmars-d mailing list