shared - i need it to be useful

jmh530 john.michael.hall at gmail.com
Wed Oct 17 11:29:01 UTC 2018


On Wednesday, 17 October 2018 at 05:40:41 UTC, Walter Bright 
wrote:
> On 10/15/2018 11:46 AM, Manu wrote:
>> [...]
>
> Shared has one incredibly valuable feature - it allows you, the 
> programmer, to identify data that can be accessed by multiple 
> threads. There are so many ways that data can be shared, the 
> only way to comprehend what is going on is to build a wall 
> around shared data.
>
> (The exception to this is immutable data. Immutable data does 
> not need synchronization, so there is no need to distinguish 
> between shared and unshared immutable data.)
> [snip]


Isn't that also true for isolated data (data that only allows one 
alias)?


More information about the Digitalmars-d mailing list