comp.lang.ada
 help / color / mirror / Atom feed
* Concatenate enumeration
@ 2009-11-23 18:15 Pablo
  2009-11-23 19:14 ` Jeffrey R. Carter
  2009-11-24 19:42 ` Eryndlia Mavourneen
  0 siblings, 2 replies; 11+ messages in thread
From: Pablo @ 2009-11-23 18:15 UTC (permalink / raw)


Hi, I have a enumerate type and I have another one which I want to add
some enumerations.
So:
type Enumerate_Type is
  (
   NONE,
   READY
  );
for Enumerate_Type use
  (
   NONE  => 0,
   READY=> 1
  );
for Enumerate_Type'Size use 1;

and I want to create a new type Enumerate2_Type which could be the
form
type Enumerate_Type is
  (
   NONE,
   READY,
   OFF
  );
for Enumerate_Type use
  (
   NONE  => 0,
   READY=> 1,
   OFF     => 2
  );
for Enumerate_Type'Size use 2;

How to I do this without having to explicit clone the first one?
Thanks



^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: Concatenate enumeration
@ 2010-10-22 19:49 okellogg
  2010-10-26  0:29 ` Yannick Duchêne (Hibou57)
  2010-11-12 17:55 ` Randy Brukardt
  0 siblings, 2 replies; 11+ messages in thread
From: okellogg @ 2010-10-22 19:49 UTC (permalink / raw)


In https://groups.google.com/group/comp.lang.ada/browse_thread/thread/33ce43bfeafb2681/237f979efee731d3,
Randy Brukardt wrote:

> "Robert A Duff" <bobd...@shell01.TheWorld.com> wrote in message
> news:wcctywksu8t.fsf@shell01.TheWorld.com...
> ...
>
> >> You can't. Enumeration types are not extensible.
>
> > Extensible enumeration types were proposed for Ada 9X,
> > but were dropped.
>
> And were proposed again for Ada 2005, and were dropped again. See
> AI95-0261-1. I doubt it will ever be proposed again.

I wonder why this has not been picked up - especially when looking at
all the new features that are making it into Ada2012.

Oliver



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

end of thread, other threads:[~2010-11-12 17:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-23 18:15 Concatenate enumeration Pablo
2009-11-23 19:14 ` Jeffrey R. Carter
2009-11-23 23:21   ` Robert A Duff
2009-11-25 22:53     ` Randy Brukardt
2009-11-26  8:59       ` Dmitry A. Kazakov
2009-11-26  9:48         ` Georg Bauhaus
2009-11-26 10:03           ` Dmitry A. Kazakov
2009-11-24 19:42 ` Eryndlia Mavourneen
  -- strict thread matches above, loose matches on Subject: below --
2010-10-22 19:49 okellogg
2010-10-26  0:29 ` Yannick Duchêne (Hibou57)
2010-11-12 17:55 ` Randy Brukardt

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