raz / conform / run / mods / Shared.raz

22 lines · 344 B · raw · history · last change 2411fde8

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