More name hiding

Mehrdad wfunction at hotmail.com
Sat Aug 20 04:51:10 PDT 2011


On 8/20/2011 3:46 AM, Kagamin wrote:
> Mehrdad Wrote:
>> Even more common with constructor parameters and instance fields.
> If a naming convention encourages shadowing, it's a broken naming convention.
I don't think a convention should /encourage/ shadowing per se, but I 
don't think it should discourage it either, except for local variable 
declarations. Parameters shadowing outside members is pretty common and 
useful, although it really depends on whether the user uses "this" 
habitually or not.


More information about the Digitalmars-d mailing list