comp.lang.ada
 help / color / mirror / Atom feed
* Extending A Generic Signature Package
@ 1997-03-17  0:00 david scott gibson
  1997-03-18  0:00 ` Tucker Taft
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: david scott gibson @ 1997-03-17  0:00 UTC (permalink / raw)



Hi.  Is any way in Ada to extend a generic signature package?  For
example, if I had the signature package Base_Interface:

generic

    type T is limited private;

    with procedure Op1(x: in out T);

package Base_Interface is end;

I would like to extend it to get a new interface with Op1 inherited.
The following code is illegal, but gives an idea of what I'd like to
do.

with Base_Interface;

generic

    type T is new Base_Interface.T;  -- ILLEGAL!!

    with procedure Op2(x: in out T);

package Extended_Interface is end;

I'd be particularly interested if there were some way of doing this
without using tagged types.  For the language lawyers, what would be
the technical barriers to allowing an extension of this sort (not
including there are other ways in Ada to achieve a similar result :-)?

Dave
dgibson@cis.ohio-state.edu






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

end of thread, other threads:[~1997-03-25  0:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-17  0:00 Extending A Generic Signature Package david scott gibson
1997-03-18  0:00 ` Tucker Taft
1997-03-18  0:00   ` Alexander V. Konstantinou
1997-03-21  0:00     ` Geert Bosch
1997-03-21  0:00       ` Brian Rogoff
1997-03-22  0:00         ` Robert A Duff
1997-03-21  0:00 ` Jon S Anthony
1997-03-21  0:00   ` david scott gibson
1997-03-22  0:00     ` Robert A Duff
1997-03-22  0:00 ` Jon S Anthony
1997-03-21  0:00   ` david scott gibson
1997-03-22  0:00     ` Robert A Duff
1997-03-25  0:00 ` Jon S Anthony

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