(DMD2.029)error, but (DMD2.028)OK!

Du Liang duliang.21 at 163.com
Wed May 6 22:04:22 PDT 2009


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.1555555} writeln(ee5.a);
	enum ee6:real{a=242345.5345345} writeln(ee6.a);
	enum ee4:string{a="aaa",b="bbb"} writeln(ee4.a);	
	readln();
}



More information about the Digitalmars-d mailing list