Throw.hookOpEquals

Called automatically upon a comparison for equality. Throws upon an erroneous comparison (one that would make a signed negative value appear equal to an unsigned positive value).

struct Throw
static
bool
hookOpEquals
(
L
R
)
(
L lhs
,
R rhs
)

Parameters

lhs L

The first argument of Checked, e.g. int if the left-hand side of the operator is Checked!int

rhs R

The right-hand side type involved in the operator

Return Value

Type: bool

The result of the comparison.

Throws

CheckFailure if the comparison is mathematically erroneous.

Meta