On Mon, 29 Nov 2010 16:43:01 -0500, Andrei Alexandrescu <[email protected]> wrote:
On 11/29/10 3:25 PM, Manfred_Nowak wrote:
Daniel Gibson wrote:

"with" shouldn't be much of a problem anymore.

import std.stdio;
struct X{ int a, b, c;}
struct Y{ int a, b;}
void main(){
   X x;
   Y y;
   with( x){
     c= 2;
     with( y){
       c= 1;
     }
   }
   writeln( x.c);
}

Do you see the not "much of a problem"?

-manfred

Great. Could you please submit this as a bug report?

It looks like it's actually an old bug: http://d.puremagic.com/issues/show_bug.cgi?id=1849

Reply via email to