comp.lang.ada
 help / color / mirror / Atom feed
From: "Hibou57 (Yannick Duchêne)" <yannick_duchene@yahoo.fr>
Subject: Re: New release of AdaControl (1.11r4)
Date: Thu, 2 Jul 2009 05:49:44 -0700 (PDT)
Date: 2009-07-02T05:49:44-07:00	[thread overview]
Message-ID: <fea88453-8a3e-42df-8787-acdb87d21cc4@d4g2000yqa.googlegroups.com> (raw)
In-Reply-To: h2i8r8$jl6$1@infosun2.rus.uni-stuttgart.de

On 2 juil, 14:23, Peter Hermann <s...@spam.de> wrote:
> doubt.
>
> why not use ordinary enumeration types, maybe indirectly, for that purpose?

Beceause an enumeration cannot be extended after it is declared

I know there was a proposal for Ada 2005, to allow enumerated type to
be extendable, but this was rejected

Sometime enumerations are just itended to defines a set of identifier,
which are to be interpreted by some applications. There is then no
need for any ordering relation (this aspect of enumeration is not
meaningful, thus not required) and these identifiers are better
defined in the child packages which indeed require these identifiers
to be inroducted. When it is, it is cleaner to not overload one
package specification with what is to belong to child packages with
apply or extend the root package. This make the specification clearer
to understand and makes relation between package and segmentation of
the domain, clearer as well.

But my notice about it was just a personal side note




  reply	other threads:[~2009-07-02 12:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-01  9:13 New release of AdaControl (1.11r4) Jean-Pierre Rosen
2009-07-01 12:11 ` Hibou57 (Yannick Duchêne)
2009-07-01 13:55   ` Jean-Pierre Rosen
2009-07-02 11:36     ` Hibou57 (Yannick Duchêne)
2009-07-02 12:23       ` Peter Hermann
2009-07-02 12:49         ` Hibou57 (Yannick Duchêne) [this message]
2009-07-02 14:03       ` Jean-Pierre Rosen
replies disabled

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