CTFE pow()

Xinok via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 1 10:12:41 PST 2015


On Thursday, 1 January 2015 at 16:56:24 UTC, Manu via 
Digitalmars-d wrote:
> Does anyone know how to fix this? Can we please do so? It's 
> been a
> problem for like 5 years it seems.
> It's a bit insane that we can't resolve any non-linear 
> functions at
> compile time.

I was looking for a relevant issue in the bug tracker. I stumbled 
upon issue [1] and pull request [2] which was closed for the 
following reasons:

1. if(__ctfe) kills inlining in DMD.
2. Other CTFE math can not be implemented until CTFE-able unions.


[1] https://issues.dlang.org/show_bug.cgi?id=5227
[2] 
https://github.com/D-Programming-Language/phobos/pull/2521#issuecomment-56265251


More information about the Digitalmars-d mailing list