Thread overview | |||||
---|---|---|---|---|---|
|
May 07, 2009 Is it a bug ? | ||||
---|---|---|---|---|
| ||||
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 Re: Is it a bug ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Du Liang | 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.
|
May 08, 2009 Re: Is it a bug ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | 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!
|
Copyright © 1999-2021 by the D Language Foundation