powExpressions work at ctfe

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Mon May 9 05:24:18 PDT 2016


On 09.05.2016 11:24, Stefan Koch wrote:
> At Dconf Manu asked to use pow expressions at CTFE.
> Luckily he can.
> powExpressions work at ctfe.

enum x=2.4^^4.5;

DMD master:

./../../phobos/std/math.d(4857): Error: cannot convert &real to ushort* 
at compile time
./../../phobos/std/math.d(6113):        called from here: isNaN(y)
./../../phobos/std/math.d(6303):        called from here: 
impl(cast(real)x, cast(real)y)
ctfepow.d(1):        called from here: pow(2.4, 4.5)


More information about the Digitalmars-d mailing list