comp.lang.ada
 help / color / mirror / Atom feed
* Calling generic children from their parent?
@ 1999-06-23  0:00 RCollinson
  1999-06-23  0:00 ` Dale Stanbrough
  1999-06-23  0:00 ` Matthew Heaney
  0 siblings, 2 replies; 8+ messages in thread
From: RCollinson @ 1999-06-23  0:00 UTC (permalink / raw)


Problem:
I need to use a type in a generic parent body that is located in the generic
child specification.  I am having problems instantiating the child in the
parent's body.  The type is not recognized unless it is instantiated.  Any
ideas?

generic
type A;
type B;
package foo is
  type My_Type is tagged private;
  procedure Do_This;
  procedure Do_That;
...
  private
  type My_Type is
  record
...
  end record;
end foo;

with foo.bar;
package body foo is
  My_Var : Foo.Bar.My_Extended_Type;  -- !!! How do I get an instance of this
variable
                                                             -- !!! that is a
type from the generic child???
                                                             -- !!! Is this
possible???
end foo;
-- ********************************************************8
generic
package foo.bar is
   type My_Extended_Type is new My_Type with
   record
...
   end record;
...
end foo.bar;




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

end of thread, other threads:[~1999-07-01  0:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-23  0:00 Calling generic children from their parent? RCollinson
1999-06-23  0:00 ` Dale Stanbrough
1999-06-23  0:00   ` rcollinson
1999-06-24  0:00     ` Tucker Taft
1999-06-24  0:00       ` rcollinson
1999-06-25  0:00         ` Tucker Taft
1999-07-01  0:00           ` rcollinson
1999-06-23  0:00 ` Matthew Heaney

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