On Monday, 19 February 2018 at 14:20:16 UTC, Basile B. wrote:
I had never used Checked and i discover that strangely there's no hook for opAssign. onLowerBound and onUpperBound works for +=, -=, *=, /=, %=, ^^=, &=, |=, ^=, <<=, >>=, and >>>=. But since init is 0, += works:

Ah, thanks. Filed a bug:
https://issues.dlang.org/show_bug.cgi?id=18471

--
  Simen

Reply via email to