comparison test/complex2.d @ 104:4d1e9eb001e0 trunk

[svn r108] Now basic suppport for complex types. =,+,-,*,/ are supported.
author lindquist
date Mon, 19 Nov 2007 02:58:58 +0100
parents
children
comparison
equal deleted inserted replaced
103:855adfdb8d38 104:4d1e9eb001e0
1 module complex2;
2
3 void main()
4 {
5 cdouble c = 3.0 + 0i;
6 cdouble d = 2.0 + 0i;
7 {
8 cdouble c1 = c + 3.0;
9 cdouble c2 = c - 3.0i;
10 }
11 {
12 cdouble c1 = c / 2.0;
13 }
14 }