[Issue 14932] The language specification does not define what the shared attribute does

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jan 20 05:27:07 PST 2017


https://issues.dlang.org/show_bug.cgi?id=14932

--- Comment #1 from anonymous4 <dfj1esp02 at sneakemail.com> ---
Well, ok, not quite in spec: https://dlang.org/migrate-to-shared.html#shared
It marks data shared across threads - that's what it does.
> This enables static checking and sharing correctness
Maybe this sentence is broadly interpreted. I think sharing correctness is
provided by ruling out possibility to confuse shared data with unshared data,
which is implemented by disallowing implicit conversion between shared and
unshared data, see https://dlang.org/spec/const3.html#implicit_conversions

--


More information about the Digitalmars-d-bugs mailing list