Re: alias example is incorrect on website

2009-01-05 Thread Jason House
K.Wilson Wrote: > Hello all, > > The example for alias declarations is incorrect here: > > http://digitalmars.com/d/1.0/declaration.html > > struct S { static int i; } > S s; > > alias s.i a; // illegal, s.i is an expression > alias S.i b; // ok > b = 4; // sets S.i to 4 > > The 'alia

alias example is incorrect on website

2009-01-04 Thread K.Wilson
Hello all, The example for alias declarations is incorrect here: http://digitalmars.com/d/1.0/declaration.html struct S { static int i; } S s; alias s.i a;// illegal, s.i is an expression alias S.i b;// ok b = 4; // sets S.i to 4 The 'alias s.i a;' statement is not flagged as ill