www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13917] New: Can't use '^^' at compile time?!

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

          Issue ID: 13917
           Summary: Can't use '^^' at compile time?!
           Product: D
           Version: unspecified
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: turkeyman gmail.com

I'm getting errors because '^^' doesn't work in ctfe?!

1>C:\dev\D\dmd2\windows\bin\..\..\src\phobos\std\math.d(4189): Error: Cannot
convert &real to ushort* at compile time
1>C:\dev\D\dmd2\windows\bin\..\..\src\phobos\std\math.d(5400):        called
from here: isNaN(y)
1>C:\dev\D\dmd2\windows\bin\..\..\src\phobos\std\math.d(5572):        called
from here: impl(cast(real)x, cast(real)y)

isNaN(), called from pow(), doesn't seem to support CTFE...

I'm amazed, this seems like, really important.

--
Dec 30 2014