* Is this a bug in my compiler?
@ 1988-12-12 19:28 Steven Holtsberg
1988-12-13 19:42 ` John Stafford
0 siblings, 1 reply; 2+ messages in thread
From: Steven Holtsberg @ 1988-12-12 19:28 UTC (permalink / raw)
First I compile the following program, which is in a file called d1.a:
::::::::
d1.a
::::::::
-------------------
package pA is end pA;
with text_io; use text_io;
package body pA is
begin
put("Elaborating pA"); new_line;
end pA;
with pA; use pA;
procedure proc is
begin
null;
end proc;
with text_io; use text_io;
with proc;
procedure main is
begin
proc;
end main;
-------------------
% ada -M main -o d1 d1.a
I run the program with the following outpout:
% d1
Elaborating pA
Next, I decide to change the name of package pA to p3, and
I also change the name of the file to d2.a:
::::::::
d2.a
::::::::
-------------------
package p3 is end p3;
with text_io; use text_io;
package body p3 is
begin
put("Elaborating p3"); new_line;
end p3;
with p3; use p3;
procedure proc is
begin
null;
end proc;
with text_io; use text_io;
with proc;
procedure main is
begin
proc;
end main;
-------------------
I compile the program:
% ada -M main -o d2 d2.a
And I run it, with the following output:
% d2
Elaborating p3
Elaborating pA
Is this a bug in my Ada compiler?
Or am I supposed to clean out the Ada library before every new compilation?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1988-12-13 19:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1988-12-12 19:28 Is this a bug in my compiler? Steven Holtsberg
1988-12-13 19:42 ` John Stafford
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox