DIP 1024--Shared Atomics--Community Review Round 1

Atila Neves atila.neves at gmail.com
Wed Oct 2 11:49:48 UTC 2019


On Wednesday, 2 October 2019 at 08:55:59 UTC, Kagamin wrote:
> Access to shared memory should be disallowed only for safe 
> code, but not for system code. For safe code it's justified, 
> because safety is unavoidable there, for system code there's a 
> concern of ease of use of shared data, which is affected by 
> littering and is not addressed in this DIP. Stripping shared 
> qualifier off for assignment isn't necessarily correct if, say, 
> the data type switches between atomic and nonatomic reference 
> counting based on its type.

@system code can always cast away shared.


More information about the Digitalmars-d mailing list