pure member functions

Walter Bright newshound1 at digitalmars.com
Fri Dec 26 23:54:49 PST 2008

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.

More information about the Digitalmars-d mailing list