home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
pub
/
users
/
Harry
/
compilers
/
p11
/
tst
/
call1.pcat
< prev
next >
Wrap
Text File
|
2006-03-05
|
463b
|
23 lines
(* This program tests procedure calling and returning. *)
program is
procedure foo1 () is
procedure foo2 () is
begin
write ("Within foo2...");
write ("...Leaving foo2");
return;
end;
begin
write ("Within foo1...");
foo2 ();
write ("...Leaving foo1");
return;
end;
begin
write ("Within main...");
foo1 ();
write ("...Leaving main");
end;