[Issue 6114] immutable class variable not properly initialized when the constructor initializing it is non-shared
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jul 6 12:12:15 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=6114
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #6 from Steven Schveighoffer <schveiguy at yahoo.com> ---
The example isn't exactly pointing out the error.
There are 2 problems here, one is an expectation that a non-shared static ctor
might run before the shared one (it doesn't, the order is clearly defined).
That's not really a bug.
The second is that immutable (shared) data is changing from one thread to the
next.
I think this should be closed as a dup of 4923.
*** This issue has been marked as a duplicate of issue 4923 ***
--
More information about the Digitalmars-d-bugs
mailing list