Only const or immutable class thread local variables are allowed

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Tue Dec 10 01:50:38 PST 2013


On 10/12/13 09:27, Jonathan M Davis wrote:
> A lot of dmd's error messages aren't great.
>
>> Would this be better?
>>
>>       Cannot initialize thread-local class variable %s with a mutable value.
>> Only const or immutable initial values are allowed (e.g. null).
>
> That would be better.

https://github.com/D-Programming-Language/dmd/pull/2943

I can also add a bugzilla issue if you like, but maybe seems overkill ... ?



More information about the Digitalmars-d-learn mailing list