view 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
line wrap: on
line source

module complex2;

void main()
{
    cdouble c = 3.0 + 0i;
    cdouble d = 2.0 + 0i;
    {
        cdouble c1 = c + 3.0;
        cdouble c2 = c - 3.0i;
    }
    {
        cdouble c1 = c / 2.0;
    }
}