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

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Sat Oct 12 09:15:26 UTC 2019


On Saturday, 12 October 2019 at 06:31:18 UTC, Jonathan M Davis 
wrote:
> On Friday, October 11, 2019 10:58:29 PM MDT Walter Bright via 
> Digitalmars-d wrote:
>> On 10/2/2019 3:42 AM, Nicholas Wilson wrote:

>> > It should be that shared memory access is disabled in all 
>> > contexts,
>> > which must be worked around with casts,
>> > which makes the function @system,
>> > which must then be encapsulated with a @trusted interface in 
>> > order to
>> > use in @safe code.
>>
>> Sounds right.
>
> This is pretty much what several of us were arguing for during 
> the discussions about shared at dconf this year.

How are you going to prove that @safe code does not retain 
nonshared-references after the lock has been released?

How does his work with array elements/slices.





More information about the Digitalmars-d mailing list