[Issue 6560] Exponentiation operator ^^ doesn't work for complex numbers
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 27 04:03:42 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6560
--- Comment #5 from bearophile_hugs at eml.cc 2011-08-27 04:03:38 PDT ---
(In reply to comment #4)
> D1 agrees with Prof. Kahan but D2 diverges so that it
> can introduce inadvertent errors
> (http://www.digitalmars.com/d/2.0/cppcomplex.html).
Please, show examples of the real problems, so Andrei & Walter will judge the
situation.
> The above program gives an error:
>
> complexes.d(6): Error: undefined identifier complex, did you mean struct
> Complex(T) if (isFloatingPoint!(T))?
> complexes.d(6): Error: undefined identifier complex, did you mean struct
> Complex(T) if (isFloatingPoint!(T))?
>
> I thought 1,3, etc. are integers, may be, so changing 1 -> 1.0, 3 -> 3.0 etc.
> it still gives same error.
Recently they have improved the std.complex module. I am using a very recent
version of DMD (2.055head) so maybe you have to wait for the release of 2.055
to see the correct code, or you have to download and compile the bleeding edge
compiler + Phobos.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list