pure member functions

mastrost titi.mastro at free.fr
Sat Dec 27 00:11:54 PST 2008


Walter Bright Wrote:

> mastrost wrote:
> > I was very surprised to see this code compile (dmd 2.022):
> 
> The 'this' reference must also be considered an argument to a pure 
> function: a.f() is f(a) as far as purity checking goes.

Ok thank you, I understand better now.



More information about the Digitalmars-d mailing list