www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Is it a bug ?

reply Du Liang <duliang.21 163.com> writes:
import std.stdio;

class A{
	int x;
	struct AS{int y;}
}
class B:A{ }

void main(){
	B:A.AS   as1;   /// : : : : ? ? ?   B : A . AS ??
	as1.y = 100;
	writeln(as1.y);
	A.AS   as2;
	as2.y = 200;
	writeln(as2.y);
	readln();
}
May 07 2009
parent reply Jarrett Billingsley <jarrett.billingsley gmail.com> writes:
On Thu, May 7, 2009 at 10:21 AM, Du Liang <duliang.21 163.com> wrote:

 =A0 =A0 =A0 =A0B:A.AS =A0 as1; =A0 /// : : : : ? ? ? =A0 B : A . AS ??
B: is a label.
May 07 2009
parent Du Liang <duliang.21 163.com> writes:
Jarrett Billingsley Wrote:

 On Thu, May 7, 2009 at 10:21 AM, Du Liang <duliang.21 163.com> wrote:
 
 ??? B:A.AS ?as1; ?/// : : : : ? ? ? ?B : A . AS ??
B: is a label.
It's not a Bug I know ! Thanks!
May 08 2009