"with" should be deprecated with extreme prejudice

Nick Sabalausky a at a.a
Mon May 18 03:03:19 PDT 2009


"grauzone" <none at example.net> wrote in message 
news:guqrj2$2l7h$2 at 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. 





More information about the Digitalmars-d mailing list