comp.lang.ada
 help / color / mirror / Atom feed
From: Erik Masella <emasella@mtl.marconi.ca>
Subject: Visibility of package within package
Date: 1996/07/31
Date: 1996-07-31T00:00:00+00:00	[thread overview]
Message-ID: <4tnv8b$6v0@gateway.marconi.ca> (raw)


Hello,

Could anybody explain to me why the following will not work:

with Generic_Pkg;

package A_Pkg is

   package B_Pkg is new Generic_Pkg(...);

..
end A_Pkg;

--------------------------------

with A_Pkg;

package body C_Pkg is

   procedure Init is
   begin
      A_Pkg.B_Pkg.Do_Something(...);
   end Init;

end C_Pkg;


==> Why isn't B_Pkg visible within C_Pkg?  From what I understand,
"Software Engineering with Ada" from Booch (2nd ed.) says at p.383 that
this is possible (but he did not use generics).

I'd greatly appreciate some insight into this.
Thanks in advance.

Erik Masella
emasella@mtl.marconi.ca




             reply	other threads:[~1996-07-31  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-31  0:00 Erik Masella [this message]
1996-08-01  0:00 ` Visibility of package within package Tucker Taft
1996-08-01  0:00   ` Chad Bremmon
1996-08-01  0:00     ` Robert A Duff
1996-08-02  0:00     ` Tucker Taft
  -- strict thread matches above, loose matches on Subject: below --
1996-08-02  0:00 Erik Masella
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox