comp.lang.ada
 help / color / mirror / Atom feed
* Extensible Enummerated types FW: When will next Ada revision be? (83, 95, ?)
@ 2001-01-20  7:26 Robert C. Leif, Ph.D.
  2001-01-20 14:06 ` Robert Dewar
  2001-01-22 15:02 ` Extensible Enummerated types FW: When will next Ada revision be? (83, 95, ?) Ted Dennison
  0 siblings, 2 replies; 41+ messages in thread
From: Robert C. Leif, Ph.D. @ 2001-01-20  7:26 UTC (permalink / raw)
  To: Comp. Lang. Ada

From: Bob Leif
To: Tucker Taft et al.
I believe that at one time you mentioned the possibility of extending an
enumerated type. This would greatly facilitate object oriented programming.
For instance, I have created a Person_Names package. The components of the
name are contained in a record. The tile part: Mr, Ms, Miss, Mrs, Dr, Prof,
etc. must include other. If one needs to make Person_Names.Military one has
to add the ranks. For Person_Names.Clergy, we go from Priest, Rabbi to Pope.
I most strongly believe that although enumerated types are extremely useful,
it is in some cases impossible to anticipate all of them. Extending
enumerated types in child libraries would permit object oriented programming
with this construct.

I will be unable to participate in any discussion until Jan 26, 2001. I have
to Chair a session on Advanced Techniques in Analytical Cytology at SPIE
BiOS 2001. Unfortunately, I think that I am the only one who uses the word
Ada at this SPIE meeting. Many of the devices reported upon can be
life-critical. The level of software development is often quite depressing.

-----Original Message-----
From: comp.lang.ada-admin@ada.eu.org
[mailto:comp.lang.ada-admin@ada.eu.org]On Behalf Of Tucker Taft
Sent: Friday, January 19, 2001 2:51 PM
To: comp.lang.ada@ada.eu.org
Subject: Re: When will next Ada revision be? (83, 95, ?)


"Beard, Frank" wrote:
>
> Where can we go to see a list of the proposed updates to the language?

Look at:


http://www.ada-auth.org/cgi-bin-acats/cvsweb.cgi/AIs/AI-SUMMARY.DOC?rev=1.74

and search for "Class: Amendment" (they are toward the bottom of the file).

>
> Frank

--
-Tucker Taft   stt@avercom.net   http://www.averstar.com/~stt/
Chief Technology Officer, AverCom, Inc. (A Titan Company) Burlington, MA
USA
(AverCom was formed 1/1/01 from the Commercial Division of AverStar)
(http://www.averstar.com/services/ebusiness_applications.html)





^ permalink raw reply	[flat|nested] 41+ messages in thread
* RE: Supertypes RE: Extensible Enumerated types
@ 2001-02-01  1:20 Beard, Frank
  2001-02-01  3:29 ` Jeffrey Carter
  0 siblings, 1 reply; 41+ messages in thread
From: Beard, Frank @ 2001-02-01  1:20 UTC (permalink / raw)
  To: 'comp.lang.ada@ada.eu.org'

Bob,

I like Jeff Creem's idea of:

type Fruit_Type is (Apple, Orange);
type New_Fruit_Type is new Fruit_Type with (Pear, Kiwi);

So your example would be:

-- from Package Prefix_Recs
type Prefix_Type is (None, Mr, Ms, Miss, Mrs, Dr, Prof, Rev,
    Other);

--From Package Prefix_Recs.Army
type Army_Prefix_Type is new Prefix_Type with (Private, Corporal, Sergeant,
Lieutenant, Captain, Major, Colonel, General);

Wouldn't this serve your purposes without the need of adding a new
reserved word?

Frank


-----Original Message-----
From: Robert C. Leif, Ph.D. [mailto:rleif@rleif.com]
Sent: Wednesday, January 31, 2001 3:05 AM
To: comp.lang.ada@ada.eu.org
Subject: Supertypes RE: Extensible Enumerated types 

> This is suggestion includes the addition of a new keyword to Ada. I
realize
> that some would consider this rank heresy.
>
> Since Ada has Subtypes to specify a subset of a type, it would be
reasonable
> to create a symmetrical operation to create a superset of a type.




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

end of thread, other threads:[~2001-02-10 20:34 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-20  7:26 Extensible Enummerated types FW: When will next Ada revision be? (83, 95, ?) Robert C. Leif, Ph.D.
2001-01-20 14:06 ` Robert Dewar
2001-01-20 16:19   ` Jeff Creem
2001-01-20 16:23     ` Mark Carroll
2001-01-20 19:18       ` Robert Dewar
2001-01-20 22:27         ` Brian Rogoff
2001-01-21 16:06           ` Robert Dewar
2001-01-21 23:08             ` Brian Rogoff
2001-01-22  2:02               ` Robert Dewar
2001-01-22 16:02                 ` Brian Rogoff
2001-01-22 16:50                   ` Robert Dewar
2001-01-22 21:12                     ` Brian Rogoff
2001-01-22 21:26                       ` Jean-Pierre Rosen
     [not found]                         ` <Pine.BSF.4.21.0101230839000.15065-100000@shell5.ba.best.com>
     [not found]                           ` <94rbdo$vf$1@wanadoo.fr>
2001-01-26 16:41                             ` LOF4 (Was Re: Extensible Enummerated types) Brian Rogoff
2001-01-20 22:34         ` Extensible Enummerated types FW: When will next Ada revision be? (83, 95, ?) Mark Carroll
2001-01-21 16:09           ` Robert Dewar
2001-01-21 19:04             ` Mark Carroll
2001-01-21 19:26               ` Robert Dewar
2001-01-21 21:12                 ` Mark Carroll
2001-01-21 17:47     ` Nick Roberts
2001-01-21 19:37       ` Robert Dewar
2001-01-22 17:26         ` Mark Lundquist
2001-01-22 20:47           ` Randy Brukardt
2001-01-22 21:41             ` Matthew Woodcraft
2001-01-30 16:17           ` Tucker Taft
2001-01-31  8:05             ` Extensible Enumerated " Robert C. Leif, Ph.D.
2001-02-10 20:34               ` Vincent Marciante
2001-01-31  8:05             ` Supertypes RE: Extensible Enumerated types Robert C. Leif, Ph.D.
2001-01-31 15:15               ` Marin David Condic
2001-02-01 22:03             ` Extensible Enummerated types FW: When will next Ada revision be? (83, 95, ?) Nick Roberts
2001-02-02  3:48               ` Robert Dewar
2001-02-02  4:41                 ` Jeffrey Carter
2001-02-02  7:26                   ` Robert C. Leif, Ph.D.
2001-02-02 16:38                     ` Robert Dewar
2001-02-02 20:39                     ` (Private message. Sorry) Nick Roberts
2001-01-22 15:02 ` Extensible Enummerated types FW: When will next Ada revision be? (83, 95, ?) Ted Dennison
2001-01-28  8:10   ` Robert C. Leif, Ph.D.
2001-02-02 21:54     ` Nick Roberts
  -- strict thread matches above, loose matches on Subject: below --
2001-02-01  1:20 Supertypes RE: Extensible Enumerated types Beard, Frank
2001-02-01  3:29 ` Jeffrey Carter
2001-02-01 23:56   ` Nick Roberts

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