From: fred@cs.utexas.edu (Fred Hosch)
Subject: Library Unit Elaboration
Date: 25 Oct 88 21:29:41 GMT [thread overview]
Message-ID: <3713@cs.utexas.edu> (raw)
I'm having trouble interpreting LRM 10.5. What should I expect
from the following (and why) when MAIN is executed?
package A is
X: INTEGER := 0;
end A;
with A;
procedure P is
begin
A.X := 1;
end P;
with A, P, INT_IO;
procedure MAIN is
begin
P;
INT_IO.PUT (A.X);
end MAIN;
10.1.2 leads me to believe that package A is elaborated twice;
my compiler says once; 10.5 is obscure.
---Fred Hosch
fred@cs.utexas.edu
reply other threads:[~1988-10-25 21:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox