Am 12.08.2012 12:38, schrieb Walter Bright:
On 8/11/2012 7:30 AM, Jakob Ovrum wrote:
Consider `pure` member functions - turns out most of them are actually pure
because the implicit `this` parameter is allowed to be mutated and it's rare for
a member function to mutate global state, yet we all strive to correctly
decorate our methods `pure` when applicable.

A better design would be to have pure be the default and impure would require
annotation. The same for const/immutable. Unfortunately, it's too late for that
now. My fault.

its never to late - put it back on the list for D 3 - please
(and local variables are immuteable by default - or seomthing like that)

Reply via email to