[Issue 3878] Arguments and members with the same name

2022-12-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3878 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 3878] Arguments and members with the same name

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3878 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --

[Issue 3878] Arguments and members with the same name

2018-05-16 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=3878 Dmitry Olshansky changed: What|Removed |Added CC||dmitry.o...@gmail.com --- Comment #14 from

[Issue 3878] Arguments and members with the same name

2013-11-26 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3878 --- Comment #13 from bearophile_h...@eml.cc 2013-11-26 04:57:12 PST --- (In reply to comment #12) > 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

[Issue 3878] Arguments and members with the same name

2013-11-24 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3878 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com Ve

[Issue 3878] Arguments and members with the same name

2013-03-23 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3878 --- Comment #11 from bearophile_h...@eml.cc 2013-03-23 12:32:33 PDT --- This enhancement request packs two different things: a request for an error message, and an alternative request for syntax sugar. To manage the two ideas it's better to spli

[Issue 3878] Arguments and members with the same name

2011-03-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3878 --- Comment #10 from bearophile_h...@eml.cc 2011-03-21 15:01:43 PDT --- (In reply to comment #9) A simpler solution are classes with automatic constructors: class Foo { string x; int y = 1; } void main() { Foo f1 = new Foo(); // Good F

[Issue 3878] Arguments and members with the same name

2010-10-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3878 --- Comment #9 from bearophile_h...@eml.cc 2010-10-17 16:05:41 PDT --- In this enhancement request I am asking for ideas to avoid a common but specific kind of bug. One idea (not mine) to avoid some of those bugs is to introduce the this.fieldna

[Issue 3878] Arguments and members with the same name

2010-10-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3878 --- Comment #8 from Sobirari Muhomori 2010-10-15 12:41:15 PDT --- Here we could benefit from const parameters by default. Though this won't help in a case when local variable shadows member. -- Configure issuemail: http://d.puremagic.com/iss

[Issue 3878] Arguments and members with the same name

2010-10-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3878 --- Comment #7 from Stewart Gordon 2010-10-03 12:08:46 PDT --- (In reply to comment #6) > (In reply to comment #5) > >> (In reply to comment #0) >>> Less restricting solution: in only those cases, where there can >>> be ambiguity for the eyes

[Issue 3878] Arguments and members with the same name

2010-10-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3878 --- Comment #6 from bearophile_h...@eml.cc 2010-10-03 08:16:10 PDT --- (In reply to comment #5) > (In reply to comment #0) > > Less restricting solution: in only those cases, where there can be ambiguity > > for the eyes of a programmer, the co

[Issue 3878] Arguments and members with the same name

2010-10-02 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3878 Stewart Gordon changed: What|Removed |Added CC||s...@iname.com Summary|Argu