Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 30, 2004 108 breaks complex numbers | ||||
---|---|---|---|---|
| ||||
The following code fails. I think it worked in 106. # import std.math; # import std.stdio; # # void test(creal a) # { # writefln(a); # } # # void main() # { # cdouble a = (2-2i)*(2-2i); # # // This fails # writefln(a); # # // This works # writefln((2-2i)*(2-2i)); # # // This fails # test((2-2i)*(2-2i)); # } Nick |
November 30, 2004 Re: 108 breaks complex numbers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick | "Nick" <Nick_member@pathlink.com> wrote in message news:coi83g$1s76$1@digitaldaemon.com... > The following code fails. I think it worked in 106. > > # import std.math; > # import std.stdio; > # > # void test(creal a) > # { > # writefln(a); > # } > # > # void main() > # { > # cdouble a = (2-2i)*(2-2i); > # > # // This fails > # writefln(a); > # > # // This works > # writefln((2-2i)*(2-2i)); > # > # // This fails > # test((2-2i)*(2-2i)); > # } > > Nick > > you are right - it worked in 106. I'm on WinXP and my output is 0+0i 0+-8i 0+0i |
December 01, 2004 Re: 108 breaks complex numbers | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nick | It never did work right. It's fixed now. Thanks. |
Copyright © 1999-2021 by the D Language Foundation