Am 27.06.2014 20:09, schrieb Kapps:
On Friday, 27 June 2014 at 08:24:16 UTC, dennis luehring wrote:
Am 27.06.2014 10:20, schrieb dennis luehring:
I
think we hit the sweet spot at restricting shadowing detection
to local scopes.

sweet does not mean - use a better name or .x to avoid manualy
hard to detect problems - its like disabled shadow detection in
local scopes

what i don't understand - why on earth should someone want to
shadow a(or better any) variable at all?

struct Foo {
       int a;
       this(int a) {
           this.a = a;
       }
}


forgot that case - but i don't like how its currently handled, maybe no better way - its just not perfect :)

Reply via email to