Comparison operations
These API functions perform operations that are equivalent to using Alore comparison operators such as == and <. Therefore they support multiple operand types and operator overloading, in a similar fashion to the Alore operators.
Each of these functions returns an int:
- 1 if the comparison was true
- 0 if the comparison was false
- a negative value if a normal exception was raised.
All of these functions may raise direct or normal exceptions.
- int AIsEq(AThread *t, AValue a, AValue b)
- Perform the comparison operation a == b.
- int AIsNeq(AThread *t, AValue a, AValue b)
- Perform the comparison operation a != b.
- int AIsLt(AThread *t, AValue a, AValue b)
- Perform the comparison operation a < b.
- int AIsGt(AThread *t, AValue a, AValue b)
- Perform the comparison operation a > b.
- int AIsGte(AThread *t, AValue a, AValue b)
- Perform the comparison operation a >= b.
- int AIsLte(AThread *t, AValue a, AValue b)
- Perform the comparison operation a <= b.