raz / conform / run / ViewPastSlice.raz

15 lines · 271 B · raw · history · last change f784f531

1module ViewPastSlice;
2(* A view of a slice's element that runs past the slice's end *)
3import Out;
4
5proc main*;
6var a: [16]U8; s: []U8; i: INT;
7begin
8 s := a[2..12];
9 for i := 0 to 9 do
10 Out.int(i);
11 s[i].(U32) := 1;
12 end;
13end;
14
15end ViewPastSlice.