Re: DateTime trying to do it at compile time.

2017-10-26 Thread Jonathan M Davis via Digitalmars-d-learn
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:

Re: DateTime trying to do it at compile time.

2017-10-26 Thread Rene Zwanenburg via Digitalmars-d-learn
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

DateTime trying to do it at compile time.

2017-10-26 Thread Mr. Jonse via Digitalmars-d-learn
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):