Inheritance of purity

deadalnix deadalnix at
Sat Feb 18 13:06:44 PST 2012

Le 18/02/2012 16:04, Timon Gehr a écrit :
> For them, it is certainly safe. It is questionable how large the
> effective benefit is for const, since the const qualifier would be
> inherited for the method only, but not for its parameters.

The const qualifier does NEVER qualify a function. This is a 
misconception. In what we call const function, what is const is the 
hhidden parameter "this", not the function.

More information about the Digitalmars-d mailing list