semantics of Siena operators: applies an operator to two values.
Applies an operator to two values. Note that Siena operators are all binary relations. Operands are applied in the given order, soapply_operator(op, x, y)
evaluates x op y. For example:apply_operator(Siena_lt, x, y)
corresponds to x < yThis function implements some minimal type-conversion (or type compatibility). In practice, integers are always compatible to doubles. The result in case of incompatible types does not depend on the actual values of
x
andy
. Specifically, it is alwaystrue
ifop == Siena_xx
(don't care) orop == Siena_ne
(not equal). Otherwise it'sfalse
. Note also that some operators (relations) are defined over a limited set of types. In particularSiena_pf
,Siena_sf
, andSiena_ss
are defined for strings (Siena_string
) operators only.
Alphabetic index HTML hierarchy of classes or Java