www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - min property of an enum

reply zwang <nehzgnaw gmail.com> writes:
void main(){
enum E{e=-1}
assert(E.min!=int.max); //<-- assertion failure
}
Apr 16 2005
parent Thomas Kuehne <thomas-dloop kuehne.thisisspam.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

zwang schrieb am Sun, 17 Apr 2005 13:14:31 +0800:
 void main(){
 enum E{e=-1}
 assert(E.min!=int.max); //<-- assertion failure
 }
Added to DStress as http://dstress.kuehne.cn/run/enum_14.d http://dstress.kuehne.cn/run/enum_15.d http://dstress.kuehne.cn/run/enum_16.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFCY1y03w+/yD4P9tIRAg+yAJ947OiXW2kPuVzVO2eKSmg3ukDHzQCeL1GU XjVsZ/C79BNFhoQDxkH5vs8= =RYwB -----END PGP SIGNATURE-----
Apr 18 2005