"with" should be deprecated with extreme prejudice

grauzone none at example.net
Mon May 18 05:22:53 PDT 2009


Nick Sabalausky wrote:
> "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. 

Yes, but who uses that anyway?



More information about the Digitalmars-d mailing list