comp.lang.ada
 help / color / mirror / Atom feed
* Visibility problems with package instantiations.....
@ 2003-11-27 15:42 Petter Fryklund
  2003-11-27 16:33 ` Dmitry A. Kazakov
  0 siblings, 1 reply; 25+ messages in thread
From: Petter Fryklund @ 2003-11-27 15:42 UTC (permalink / raw)


We have the following:

generic 
   type A is mod (<>);
   type B is mod (<>);
package Gen_0 is
   type C is 
      record
         AA : A;
         BB : B;
      end record;
end Gen_0;

with Gen_0;
generic
   with package Inst_0 is new Gen_0 (<>);
package Gen_1 is
   procedure X (P1 : Inst_0.C);
end Gen_1;

with Gen_0;
generic
   with package Inst_0 is new Gen_0 (<>);
   with package Inst_1 is new Gen_1 (<>);
package Gen_2 is
   procedure X (P1 : Inst_0.C);
end Gen_2;

package body Gen_2 is
   procedure X (P1 : Inst_0.C) is
   begin
      Inst_1 (P1); <---- visibility problems.
   end X;
end Gen_2;

procedure Main is 
   package Inst_0 is new Gen_0 (Interfaces.Unsigned_16, Interfaces.Unsigned_16);
   package Inst_1 is new Gen_1 (Inst_0);
   package Inst_2 is new Gen_2 (Inst_0, Inst_1);
begin
   Inst_2.X ...

Why?



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2003-12-05 21:10 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-27 15:42 Visibility problems with package instantiations Petter Fryklund
2003-11-27 16:33 ` Dmitry A. Kazakov
2003-11-28 11:23   ` Petter Fryklund
2003-11-28 13:17     ` Dmitry A. Kazakov
2003-12-01  7:45       ` Petter Fryklund
2003-12-01  8:58         ` Dmitry A. Kazakov
2003-12-01 16:31           ` Stephen Leake
2003-12-02  9:00             ` Dmitry A. Kazakov
2003-12-02 16:20               ` Stephen Leake
2003-12-03  8:37                 ` Dmitry A. Kazakov
2003-12-03 18:09                   ` Stephen Leake
2003-12-04  9:16                     ` Dmitry A. Kazakov
2003-12-04 13:09                       ` Stephen Leake
2003-12-04 14:03                         ` Dmitry A. Kazakov
2003-12-04 19:24                         ` Randy Brukardt
2003-12-05  0:30                           ` Stephen Leake
2003-12-05  2:58                             ` Randy Brukardt
2003-12-05 14:04                               ` Stephen Leake
2003-12-05 12:14                           ` Jeff C,
2003-12-05 13:13                             ` Arnaud Charlet
2003-12-05 20:52                               ` Randy Brukardt
2003-12-05 21:10                                 ` Simon Wright
2003-12-02 17:07               ` Jeffrey Carter
2003-12-03  8:49                 ` Dmitry A. Kazakov
2003-12-02  4:25         ` Randy Brukardt

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