More name hiding

Mehrdad wfunction at hotmail.com
Sat Aug 20 19:57:53 PDT 2011


 >> Parameters shadowing outside members is pretty common and useful

 > How the hell is it useful?
 > If you have:
 > {
 >     int x;
 >     {
 >         double x; // use x
 >     }
 > }
 > And you comment out or remove "double x", you've just introduced a 
bug in your code

I think you missed the word *MEMBER* in my post. I specifically said 
that I'm talking about MEMBER variables, not local variables.


More information about the Digitalmars-d mailing list