home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Crawly Crypt Collection 1
/
crawlyvol1.bin
/
program
/
compiler
/
vici_102
/
examples
/
listtest.e
< prev
next >
Wrap
Text File
|
1993-03-02
|
397b
|
36 lines
class listtest
feature
l: list;
create is
local
p,q: list;
i: integer
do
l.create(0);
--l.put(0);
from i:=1; q:=l
until i>4
loop
p.create(i);
--p.put(i);
q.add(p);
q:=p;
i:=i+1
end;
from p:=l
until p.void
loop
io.putint(p.item);
p:=p.next
end;
end
end