comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc A. Criley" <mcquadex@earthlink.net>
Subject: Re: [Ada-Comment] Extensible Enumerated Types
Date: Wed, 14 Feb 2001 12:49:20 GMT
Date: 2001-02-14T12:49:20+00:00	[thread overview]
Message-ID: <3A8A70EC.27658CC9@earthlink.net> (raw)
In-Reply-To: mailman.982119383.11660.comp.lang.ada@ada.eu.org

"Robert C. Leif, Ph.D." wrote:
> 
> From: Bob Leif
> To: Pascal Leroy et al.
> I have taken the liberty of cross-posting my reply to Comp.Lang.Ada, which
> is where the previous discussion occurred. You wrote, "I encourage you to
> write a detailed proposal on how this would be integrated with the rest of
> the language, and how it could be implemented."
> 
> I did not see a requirement that in order to propose an extension to Ada one
> must be an expert in Ada compilers. In fact in some cases, it may be that
> such expertise could even be detrimental. As I have repeatedly stated, there
> are both technology driven and market driven aspects to product development.
> In my own field of Analytical Cytology (Biomedical Engineering), I would
> never limit customer or marketing suggestions to only those that the
> individual who made the proposal actually knew how to do the implementation.
> In fact one major reason for selecting one of the 3 proposed implementations
> is: How easy would it be to teach in a first year computer science course? I
> might note that my suggestion came from the problem of implementing a
> software package.

Bob,

Relax.

Adding extensible enumerated types to Ada would be a non-trivial
addition to the language.  What Pascal is requesting (and I don't think
it's out-of-line) is a starting point for discussion.  If a proposal for
a language modification made to the ARG is accompanied by an analysis of
how the feature would behave in a variety of circumstances, and how it
might impact related features, it gives everyone a headstart on
conceptualizing and evaluation.  As neither your nor I are language
lawyers, we certainly are not expected to provide a comprehensive,
end-to-end proposal regarding the addition.

By having spent some time evaluating what the impact of the new feature
would be, along with the concept of how it should act, the ARG can start
looking at the various aspects of the feature that have been initially
covered in the proposal, rather than having to uncover each such aspect
themselves.

Marc A. Criley
Senior Staff Engineer
Quadrus Corporation
www.quadruscorp.com


> 
> -----Original Message-----
> From: Pascal Leroy [mailto:pleroy@rational.com]
> Sent: Tuesday, February 13, 2001 2:34 PM
> To: rleif@rleif.com
> Cc: Ada-Comment List
> Subject: Re: [Ada-Comment] Extensible Enumerated Types
> 
> > Topic: Extensible Enumerated Types
> >
> > type Prefix_Type is (None, Mr, Ms, Miss, Mrs, Dr, Prof, Rev, Other);
> >
> > (1)
> > supertype Army_Prefix_Type is (Prefix_Type, Private, Corporal, Sergeant,
> > Lieutenant, Captain, Major, Colonel, General);
> >
> > (2)
> > type Army_Prefix_Type is new Prefix_Type with (Private, Corporal,
> Sergeant,
> > Lieutenant, Captain, Major, Colonel, General);
> >
> > (3)
> > type Army_Prefix_Type is (Prefix_Type?range & ((Private, Corporal,
> Sergeant,
> > Lieutenant, Captain, Major, Colonel, General));
> 
> Extensible enumeration types are certainly an interesting idea.  In fact at
> some point during the 9X process they were part of the Mapping Document, and
> got trimmed.  I think Tuck mentioned them again during the last ARG meeting.
> 
> But if you feel that this feature should be added to the language, I
> encourage you to write a detailed proposal on how this would be integrated
> with the rest of the language, and how it could be implemented.  Coming up
> with syntax is very easy (I have no doubt that the "right" syntax is #2,
> btw) but that's only about 1% of the work.  I think that the ARG would be
> much more interested in looking at this idea if there were a real proposal
> on the table, rather than a one-line example of the syntax.
> 
> If we had a real proposal, it would also be possible to evaluate the
> implementation complexity and balance that with the potential benefits.
> 
> If you are interested in writing such a proposal, just send it to
> Ada-Comment and it will be given due consideration.
> 
> Pascal



  reply	other threads:[~2001-02-14 12:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <002301c0960d$23ecb2f0$01a2a8c0@carpaccio>
2001-02-14  2:55 ` [Ada-Comment] Extensible Enumerated Types Robert C. Leif, Ph.D.
2001-02-14 12:49   ` Marc A. Criley [this message]
2001-02-15 10:13     ` Mario Amado Alves
     [not found] <006c01c096af$a722e8e0$0304a8c0@bigboy.rrsoftware.com>
2001-02-14 21:34 ` Robert C. Leif, Ph.D.
replies disabled

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