4 newmode otto = array (bool, bool) byte;
5 newmode str1 = struct (f1 int, f2 bool);
6 newmode str2 = struct (f1 otto);
8 dcl a otto := [[1,1],[1,1]];
9 dcl b str1 := [10, false];
12 fred : proc (a int in, b int loc);
13 writetext(stdout, "a is '%C'; b is '%C'.%/", a, b);
17 writetext(stdout, "here's klaus calling.%/");
20 king : proc (p otto loc, x otto in);
22 p := [[h'ff,h'ff],[h'ff,h'ff]];
23 do for i:= lower(bool) to upper(bool);
24 do for j:= lower(bool) to upper(bool);
25 writetext(stdout, "x(%C, %C) = %C%..%/", i, j, x(i, j));
26 writetext(stdout, "p(%C, %C) = %C%..%/", i, j, p(i, j));
31 ralph : proc (x str1 in);
32 writetext(stdout, "x.f1 = %C, x.f2 = %C%..%/", x.f1, x.f2);
35 whitney : proc (x str2 in);
38 do for i:= lower(bool) to upper(bool);
39 do for j:= lower(bool) to upper(bool);
40 writetext(stdout, "x.f1(%C, %C) = %C%..%/", i, j, x.f1(i, j));
48 writetext(stdout, "done.%/");