issue 7006 - std.math.pow (integral, integral) crashes on negative exponents

Timon Gehr timon.gehr at gmx.ch
Tue Dec 17 13:30:48 UTC 2019


On 16.12.19 13:25, Johannes Loher wrote:
> 
> The thing is: In math, it is extremely common to write this as (-1)^^x. 
> I don‘t understand why we should not allow this notation.

Note that in existing compiler releases, the specific notation (-1)^^x 
is currently supported as a special rewrite rule in the frontend. This 
is going away though: 
https://github.com/dlang/dmd/commit/0f2889c3aa9fba5534e754dade0cae574b636d55

I.e., I will raise the severity of the issue to regression.


More information about the Digitalmars-d mailing list