Mercurial > projects > dstress
view run/const_22_D.d @ 510:ef1faa3f2bf7
const float conversions
zwang <nehzgnaw@gmail.com>
2005-05-05
news:d5cj56$mfp$1@digitaldaemon.com
author | thomask |
---|---|
date | Tue, 10 May 2005 23:48:58 +0000 |
parents | |
children | 9a121126b077 |
line wrap: on
line source
// $HeadURL: http://dstress.kuehne.cn/run/const_22_D.d $ // $Date: 2005-05-06 11:25:58 +0200 (Fr, 06 Mai 2005) $ // $Author: thomask $ // @author@ zwang <nehzgnaw@gmail.com> // @date@ 2005-05-05 // @uri@ news:d5cj56$mfp$1@digitaldaemon.com module dstress.run.const_22_D; int main(){ real d = 3.0L; int i = cast(int)d; assert(3 == i); return 0; }