Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
537B

  1. Chained comparisons
  2. The unit "cmp.fs" contains words to facilitate chained
  3. comparisons with a single reference number. This allows, for
  4. example, to easily express "a == b or a == c" or "a > b and a <
  5. c".
  6. The way those chained comparison words work is that, unlike
  7. single comparison operators, they don't have a "n1 n2 -- f"
  8. signature, but rather a "n1 f n2 -- n1 f" signature. That is,
  9. each operator "carries over" the reference number in addition
  10. to the latest flag.
  11. (cont.)