C:\D\dmd2\windows\bin\..\..\src\phobos\std\concurrency.d(2395): Error: variable lock cannot be modified at compile time C:\D\dmd2\windows\bin\..\..\src\phobos\std\concurrency.d(2422): called from here: initOnceLock() C:\D\dmd2\windows\bin\..\..\src\phobos\std\concurrency.d(2422): called from here: initOnce(delegate shared(bool)() => init(), initOnceLock())
C:\D\dmd2\windows\bin\..\..\src\phobos\std\datetime\timezone.d(1128):        called 
from here: initOnce(delegate shared(bool)() => (*function () => true)())
C:\D\dmd2\windows\bin\..\..\src\phobos\std\datetime\timezone.d(583):        called 
from here: (*& singleton)()
C:\D\dmd2\windows\bin\..\..\src\phobos\std\datetime\systime.d(64):        
called from here: opCall()

when calling Clock.currTime() in a this() in a class. I have no idea why it is trying to do it at compile time and failing. I thought if ctfe couldn't compile it would do it at run time anyways? Seems like a bug.

Reply via email to