More name hiding

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Aug 19 08:17:54 PDT 2011


It's not just globals. It's hiding fields as well:

class A
{
    int x;
    this()
    {
         int x; // <- hides this.x
    }
}

I've had this happen during a cut/paste session, which happens when
I'm refactoring my code.


More information about the Digitalmars-d mailing list