From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: Type extension questions
Date: 27 Mar 1995 20:26:37 GMT
Date: 1995-03-27T20:26:37+00:00 [thread overview]
Message-ID: <EACHUS.95Mar27152637@spectre.mitre.org> (raw)
In-Reply-To: koehnema@enuxsa.eas.asu.edu's message of Mon, 27 Mar 1995 17:29:07 GMT
In article <D640KK.63D@ennews.eas.asu.edu> koehnema@enuxsa.eas.asu.edu (Harry Koehnemann) writes:
> class List {
> public: Set (...) { ...}
> private: ...;
> };
type List is new Set with private;
> class Stack : private List {
> public: Push() { ...}
> private: ...;
> };
type Stack is tagged private;
procedure Push(...
private
type Stack is new List with...
> BTW - I am by no means saying Ada95 should have included such a
> feature (in fact, I am not a believer in restricting interfaces and
> think that it clutters a design). I'm just getting my Ada95 facts
> straight.
But it does include such a feature, the syntax is somewhat
different.
--
Robert I. Eachus
with Standard_Disclaimer;
use Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...
next prev parent reply other threads:[~1995-03-27 20:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-03-22 0:25 Type extension questions Harry Koehnemann
1995-03-22 12:01 ` Robb Nebbe
1995-03-23 22:05 ` Harry Koehnemann
1995-03-25 6:59 ` Cyrille Comar
1995-03-25 7:13 ` Cyrille Comar
1995-03-27 0:00 ` Norman H. Cohen
1995-03-30 0:00 ` Cyrille Comar
1995-03-27 17:29 ` Harry Koehnemann
1995-03-27 20:26 ` Robert I. Eachus [this message]
1995-03-29 0:00 ` Harry Koehnemann
1995-03-27 20:37 ` Kennel
1995-03-23 22:03 ` Tucker Taft
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox