Thread overview
[Issue 14932] The language specification does not define what the shared attribute does
Aug 19, 2015
Sobirari Muhomori
Jan 20, 2017
anonymous4
Jan 30, 2017
anonymous4
Dec 17, 2022
Iain Buclaw
Mar 16, 2023
Dlang Bot
Mar 17, 2023
Dlang Bot
August 19, 2015
https://issues.dlang.org/show_bug.cgi?id=14932

Sobirari Muhomori <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |spec

--
January 20, 2017
https://issues.dlang.org/show_bug.cgi?id=14932

--- Comment #1 from anonymous4 <dfj1esp02@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

--
January 30, 2017
https://issues.dlang.org/show_bug.cgi?id=14932

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=16198

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=14932

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
March 16, 2023
https://issues.dlang.org/show_bug.cgi?id=14932

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ntrel created dlang/dlang.org pull request #3556 "Fix Issue 14932 - spec does not define what shared attribute does" fixing this issue:

- Fix Issue 14932 - language spec does not define what shared does

  Normal initialization of shared vars is OK.
  Add atomicStore, atomicLoad example.
  Add example showing casting to shared.
  Mention shared globals use common storage not TLS.

https://github.com/dlang/dlang.org/pull/3556

--
March 17, 2023
https://issues.dlang.org/show_bug.cgi?id=14932

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dlang.org pull request #3556 "Fix Issue 14932 - spec does not define what shared attribute does" was merged into master:

- 391a00ed0f6e0795153534269dc6218c0a6179e7 by Nick Treleaven:
  Fix Issue 14932 - language spec does not define what shared does

  Normal initialization of shared vars is OK.
  Add atomicStore, atomicLoad example.
  Add example showing casting to shared.
  Mention shared globals use common storage not TLS.

https://github.com/dlang/dlang.org/pull/3556

--