I think Atila was talking about this one: struct A { ~this() {} }void main() { auto a = A(); shared b = A(); }
This is strange. There's nothing that suggests that struct A and its destructor is thread-safe, yet compiler assumes it is.
I think Atila was talking about this one: struct A { ~this() {} }void main() { auto a = A(); shared b = A(); }
This is strange. There's nothing that suggests that struct A and its destructor is thread-safe, yet compiler assumes it is.