[Issue 3661] opPow not supported in array operations.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 31 23:08:17 PST 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3661


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-12-31 23:08:16 PST ---
(In reply to comment #0)
> This is agains 2.037.
> btw. also this in opPow doesnt work
> 
>  float pi = 3.14;
>  float x = pi ^^ 2.0;
> 
> one needs explicitly write 2.0f (this is because std.math.pow have only one F
> template parameter, and compiler doesn't know which to infer).

This works in 2.038.  Please ignore opPow in 2.037, it wasn't intended to be
complete. Perform all tests on 2.038.

As for the other ones -- opPow for array operations, where the exponent is not
a compile-time constant, will probably never be supported.
We could manage things like z[] = x^^2 + y^^2.

-- 
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