| 1 | module Shared; |
| 2 | (* Exported variables, which only this module changes *) |
| 3 | |
| 4 | type Shape* = variant dot; circle(r: INT); end; |
| 5 | |
| 6 | var |
| 7 | count*: INT; |
| 8 | words*: [3]INT; |
| 9 | bytes*: []U8; |
| 10 | shape*: Shape; |
| 11 | store: [4]U8; |
| 12 | |
| 13 | proc bump*; |
| 14 | begin |
| 15 | INC(count); |
| 16 | words[1] := count; |
| 17 | end; |
| 18 | |
| 19 | begin |
| 20 | bytes := store; |
| 21 | shape := circle(5); |
| 22 | end Shared. |