raz
/
conform
/
run
/ ViewPastSlice.raz
about
files
log
releases
feed
15 lines · 271 B ·
raw
·
history
· last change
f784f531
1
module
ViewPastSlice;
2
(* A view of a slice's element that runs past the slice's end *)
3
import
Out;
4
5
proc
main*;
6
var
a: [
16
]
U8
; s: []
U8
; i:
INT
;
7
begin
8
s := a[
2
..
12
];
9
for
i :=
0
to
9
do
10
Out.int(i);
11
s[i].(
U32
) :=
1
;
12
end
;
13
end
;
14
15
end
ViewPastSlice.