The OpenD Programming Language

WithNaN.hookOpEquals

Returns false if lhs == WithNaN.defaultValue!Lhs, lhs == rhs otherwise.

struct WithNaN
static
bool
hookOpEquals
(
Lhs
Rhs
)
(
Lhs lhs
,
Rhs rhs
)

Parameters

lhs Lhs

The left-hand side of the comparison (Lhs is the first argument to Checked)

rhs Rhs

The right-hand side of the comparison

Return Value

Type: bool

lhs != WithNaN.defaultValue!Lhs && lhs == rhs

Meta