There's some existing code out there (e.g. std.getopt) that is based on pointers.
---
shared int foo;
atomicOpPointer!("+=")(&foo, 1);
---
would help in migrating this code. Other functionality in this module is already based on pointers (e.g. cas)
See also: https://issues.dlang.org/show_bug.cgi?id=18375
Comment #1 by robert.schadek — 2024-12-07T13:37:58Z