Abort.onUpperBound

Called automatically upon a bounds error.

  1. T onLowerBound(Rhs rhs, T bound)
  2. T onUpperBound(Rhs rhs, T bound)
    struct Abort
    static
    T
    onUpperBound
    (
    Rhs
    T
    )
    (
    Rhs rhs
    ,)

Parameters

rhs Rhs

The right-hand side value in the assignment, after the operator has been evaluated

bound T

The value of the bound being violated

Return Value

Type: T

Nominally the result is the desired value of the operator, which will be forwarded as result. For Abort, the function never returns because it aborts the program.

Meta

Suggestion Box / Bug Report