On Friday, 9 March 2012 at 21:36:28 UTC, Steven Schveighoffer wrote:
I can't say I agree with this, as it pollutes the global namespace with several common terms that could be used for fields.

There's no such thing as a global namespace in D, and
field names wouldn't be affected even if there was one.

int minutes(int i) {
        return i;
}

struct A {
        int minutes; // not a problem
        void foo() {
             minutes = .minutes(1); // works
        }
}

Reply via email to