next up previous contents
Next: Functions on Type t_int Up: Primitives Previous: Primitives   Contents

Functions on Type t_bool

Recall that true and false are Vesta values, not C++ quantities.

operator==(t_bool b1, t_bool b2)

Returns true if b1 and b2 are the same, and false otherwise.

operator!=(t_bool b1, t_bool b2)
  operator!(operator==(b1, b2))

operator!(t_bool b) =
  int ib = b; // convert to C++ integer
  if (ib) return false; else return true;

Allan Heydon, Roy Levin, Timothy Mann, Yuan Yu