Getting the const-correctness of Object sorted once and for all

Mehrdad wfunction at hotmail.com
Mon May 14 01:03:47 PDT 2012


On Monday, 14 May 2012 at 06:27:15 UTC, Walter Bright wrote:
> #3 Improves self-documentation of code - it's more 
> understandable and less susceptible to breakage during 
> maintenance.

#3 is also valid for C++, so I wasn't exactly considering that.

> #4 Improves encapsulation

o.O How does it improve encapsulation?

> #5 Makes function purity possible

Ah yea, this one I forgot.


More information about the Digitalmars-d mailing list