Throw.onOverflow

typeof(~ Lhs()) onOverflow(string x, Lhs)(Lhs lhs)

Called automatically upon an overflow during a unary or binary operation.

Parameters

xThe operator, e.g. `-`
lhsThe left-hand side (or sole) argument
rhsThe right-hand side type involved in the operator

Returns

Nominally the result is the desired value of the operator, which

will be forwarded as result. For Throw, the function never returns because it throws an exception.

Throws

CheckFailure on overflow
typeof(Lhs() + Rhs()) onOverflow(string x, Lhs, Rhs)(Lhs lhs, Rhs rhs)

ditto