1: program sets (input, output);
   2: type
   3:     Color = (RED, BLUE, GREEN);
   4:     ColorSet = set of Color;
   5: var
   6:     s : ColorSet;
   7: 
   8: procedure p (var s : ColorSet);
   9: begin
  10:     s := [RED, BLUE];
  11: end;
  12: 
  13: begin
  14:     p(s);
  15:     if BLUE in s then begin
  16:     s := s - [BLUE];
  17:     end;
  18: end.
Last modified: 1985-03-08
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 359
Valid CSS Valid XHTML 1.0 Strict