gap08_val_cast_set_word.mod 438 B

123456789
  1. MODULE Gap08ValCastSetWord;
  2. (* Modula-2 gap (ISO SYSTEM): a set is represented as an address, so
  3. VAL/CAST between a set (BITSET) and CARDINAL is unsupported. In
  4. Modula-2 a BITSET has a machine-word representation, so the
  5. conversion is well-defined. Class: iso/system.
  6. Corpus: constset, constset2, constset3, packed.
  7. V3: not supported yet. *)
  8. VAR c : CARDINAL;
  9. BEGIN c := VAL(CARDINAL, BITSET{0}) END Gap08ValCastSetWord.