Why do you continue to use D?

Walter Bright newshound2 at digitalmars.com
Fri Jun 5 10:15:25 UTC 2020


On 6/4/2020 7:44 PM, Manu wrote:
> ...

Regarding shared,

     void test(shared(int)* p) { *p = 1; }

dmd -preview=nosharedaccess test

     test.d(31): Error: direct access to shared *p is not allowed, see core.atomic

Isn't that what you wanted?


More information about the Digitalmars-d mailing list