On Friday, 27 June 2014 at 08:24:16 UTC, dennis luehring wrote:
Am 27.06.2014 10:20, schrieb dennis luehring:Ithink 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 scopeswhat 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;
}
}
