[Issue 3878] Arguments and members with the same name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Nov 24 11:36:56 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=3878
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
Version|2.041 |D2
--- Comment #12 from Walter Bright <bugzilla at digitalmars.com> 2013-11-24 11:36:53 PST ---
In reply to the original report, I disagree that this is a significant issue,
in fact I'll often deliberately name a parameter the same as a member.
struct S {
int m;
this(int m) { this.m = m; }
}
because I like to make it clear I am initializing m. I find code like this to
be unduly wretched:
struct S {
int m;
this(int _m) { m = _m; }
}
I'm opposed to this enhancement.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list