raz
/
conform
/
run
/
mods
/ Stack.raz
about
files
log
releases
feed
16 lines · 253 B ·
raw
·
history
· last change
264716cb
1
module
Stack;
2
import
Ints := Pile(
I64
);
3
import
SYSTEM;
4
5
var
6
s: Ints.Pile;
7
p*: ^Ints.Pile;
(* s, which only this module could change by its name *)
8
9
proc
top*():
I64
;
10
begin
11
return
Ints.top(p);
12
end
;
13
14
begin
15
p := SYSTEM.
ADR
(s);
16
end
Stack.