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?