suggestion: read-only array-reference

Johan Granberg lijat.meREM at OVEgmail.com
Thu Jul 20 08:05:43 PDT 2006


Ben Phillips wrote:
> Well, in your case, why declare "name" as a "const" if you intend to allow it to
> be modified? A const member in a class should only be allowed to be modified in
> a constructor of that class.

The idea was that I can modify it but nobody else can. Actually it's not 
very important as you showed in your example.



More information about the Digitalmars-d mailing list