magically a static member on init?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Tue Nov 17 16:16:53 UTC 2020


On Tuesday, 17 November 2020 at 13:24:03 UTC, Kagamin wrote:
> On Saturday, 14 November 2020 at 23:30:58 UTC, Adam D. Ruppe 
> wrote:
>> On Saturday, 14 November 2020 at 23:20:55 UTC, Martin wrote:
>>> Is this intentional?
>>
>> In the current language design, yes.
>
> It's a bug, it breaks data sharing guarantees.

Hah, yes. Init actually should be thread local for this to work 
out...
Ref shared semantics...


More information about the Digitalmars-d-learn mailing list