Jarrett Billingsley Wrote:
On Thu, May 7, 2009 at 10:21 AM, Du Liang duliang...@163.com wrote:
??? B:A.AS ?as1; ?/// : : : : ? ? ? ?B : A . AS ??
B: is a label.
It's not a Bug
I know ! Thanks!
davidl Wrote:
If I remember correctly, I reported a similar bug to the bugzilla.
You can take a look at the bugzilla:
http://d.puremagic.com/issues/
Thank you for your reply !!
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();
}
import std.stdio;
class AB{
int A;
int B = 2;
int[] arrA;
int[] arrB = [2,2,2]; // arrB is static in[] or bug ?
this(){
this.A = 1;
this.arrA=[1,1,1];
}
}
void main(){
AB ab1 = new AB();
AB ab2 = new
import std.stdio;
void main(){
enum ee0:int{a=1000} writeln(ee0.a);
enum ee1:long{a=1000} ;
writeln(ee1.a); //(DMD2.029)error, but (DMD2.028)OK!
enum ee2:byte{a=125} writeln(ee2.a);
enum ee3:char{a='a'} writeln(ee3.a);
enum ee5:float{a=1.155}