grauzone wrote:
Nick Sabalausky wrote:
"grauzone" <n...@example.net> wrote in message news:guqrj2$2l7...@digitalmars.com...
Here's another simple fix for with();

int x, y;
with (whatever)
{
      .y += x; //.y references this is whatever.y
      ++x;     //x references local scope
}

That already means global scope.

Yes, but who uses that anyway?

There's that perennial annoyance that class methods with a given name hide free functions of the same name, even if they are not covariant. This crops up a lot with toString, and the fix is to prepend a dot to the invocation.

Reply via email to