[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 --- Comment #10 from Ketmar Dark --- ah, the normal D attitude. "beginners sux!" (c) pascal/Cubic Team --

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 --- Comment #9 from Steven Schveighoffer --- (In reply to bearophile_hugs from comment #7) > But this behaviour looks a little surprising. So perhaps in this case > specifc it's better to give a shadowing error (with a warning/deprecation > phase fi

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 --- Comment #8 from Ketmar Dark --- i don't think that shadowing globals should always generate warning. i believe that it's enough to generate warning only when there is possible UFCS shadowing. so: import std.stdio; void foo(int a) { writeln

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc --- Comment #

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 --- Comment #6 from Ketmar Dark --- Fyodor is not talking about "fixing" UFCS. what he talking about is issuing a warning when there is local declaration with the same name as global one, and global one was chosen by UFCS. here compiler should issue

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 Steven Schveighoffer changed: What|Removed |Added Status|REOPENED|RESOLVED CC|

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 Vlad Levenfeld changed: What|Removed |Added CC||vlevenf...@gmail.com --

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 Kenji Hara changed: What|Removed |Added Severity|normal |enhancement --

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 --- Comment #4 from Ketmar Dark --- please, open ER for it. this is definitely not a bug, so it shouldn't be opened as *bug* report, especially with the current subj. and then please close this as "notabug" again. --

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 Fyodor Ustinov changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

[Issue 14161] UFCS call does not abide by scope

2015-02-10 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 Ketmar Dark changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 14161] UFCS call does not abide by scope

2015-02-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14161 Fyodor Ustinov changed: What|Removed |Added CC||u...@ufm.su --- Comment #1 from Fyodor Usti