digitalmars.D - (DMD2.029)error, but (DMD2.028)OK!
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(); }
May 06 2009
在 Thu, 07 May 2009 13:04:22 +0800,Du Liang <duliang.21 163.com> 写道: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(); }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/ -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
May 07 2009
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 !!
May 07 2009