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.