annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
510
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
1 // $HeadURL: http://dstress.kuehne.cn/run/const_22_D.d $
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
2 // $Date: 2005-05-06 11:25:58 +0200 (Fr, 06 Mai 2005) $
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
3 // $Author: thomask $
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
4
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
5 // @author@ zwang <nehzgnaw@gmail.com>
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
6 // @date@ 2005-05-05
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
7 // @uri@ news:d5cj56$mfp$1@digitaldaemon.com
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
8
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
9 module dstress.run.const_22_D;
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
10
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
11 int main(){
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
12 real d = 3.0L;
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
13 int i = cast(int)d;
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
14 assert(3 == i);
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
15 return 0;
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
16 }
ef1faa3f2bf7 const float conversions
thomask
parents:
diff changeset
17