annotate 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
rev   line source
lindquist@104 1 module complex2;
lindquist@104 2
lindquist@104 3 void main()
lindquist@104 4 {
lindquist@104 5 cdouble c = 3.0 + 0i;
lindquist@104 6 cdouble d = 2.0 + 0i;
lindquist@104 7 {
lindquist@104 8 cdouble c1 = c + 3.0;
lindquist@104 9 cdouble c2 = c - 3.0i;
lindquist@104 10 }
lindquist@104 11 {
lindquist@104 12 cdouble c1 = c / 2.0;
lindquist@104 13 }
lindquist@104 14 }