[Issue 5227] X ^^ FP at compile-time

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 8 17:59:27 PDT 2015


https://issues.dlang.org/show_bug.cgi?id=5227

--- Comment #10 from Manu <turkeyman at gmail.com> ---
(In reply to Iain Buclaw from comment #8)
> (In reply to Manu from comment #7)
> > log() works!
> 
> I doubt that, CTFE isn't powerful enough yet.


pragma(msg, log(101.2));

> 4.6171L



pragma(msg, 2^^1.2);

C:\dev\D\dmd2\windows\bin\..\..\src\phobos\std\math.d(4463): Error: cannot
convert &real to ushort* at compile time
C:\dev\D\dmd2\windows\bin\..\..\src\phobos\std\math.d(5688):        called from
here: isNaN(y)
C:\dev\D\dmd2\windows\bin\..\..\src\phobos\std\math.d(5860):        called from
here: impl(cast(real)x, cast(real)y)

--


More information about the Digitalmars-d-bugs mailing list