g_pair_prog.mod 279 B

12345678
  1. MODULE PairProg;
  2. // Two-formal generic instantiation, both type parameters used and
  3. // bound: IntChar = Pair(INTEGER, CHAR). Exit 7 + ORD("B") = 73.
  4. FROM IntChar IMPORT First, Second;
  5. VAR ExitCode : INTEGER;
  6. BEGIN
  7. ExitCode := First(7, "A") + ORD(Second(1, "B"))
  8. END PairProg.