On Thursday, October 26, 2017 17:55:05 Mr. Jonse via Digitalmars-d-learn
wrote:
> 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:
On Thursday, 26 October 2017 at 17:55:05 UTC, Mr. Jonse wrote:
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.
I suspect you're
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):