On Sunday, 7 February 2016 at 20:25:44 UTC, Minas Mina wrote:
Just noticed that there's no example. It's used likeshared(ulong) a; atomicOp!"+="(a, 1);Wow, that syntax sucks a lot.
a.atomicOp!"+="(1); sounds better. You can alias it too.
Andrea Fontana via Digitalmars-d-learn Mon, 08 Feb 2016 00:36:07 -0800
On Sunday, 7 February 2016 at 20:25:44 UTC, Minas Mina wrote:
Just noticed that there's no example. It's used likeshared(ulong) a; atomicOp!"+="(a, 1);Wow, that syntax sucks a lot.
a.atomicOp!"+="(1); sounds better. You can alias it too.