On Thursday, 14 March 2019 at 11:05:22 UTC, spir wrote:

The most confusing error is:
Error: variable `_base.c0` is a thread-local class and cannot have a static initializer. Use `static this()` to initialize instead.

Error is reffering to: https://dlang.org/spec/module.html#staticorder

You can do this:

C c0;

static this()
{
 c0 = new C();
}

Andrea

Reply via email to