Re: type and subtype
- From: Martin Krischik <krischik@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 19:07:13 +0200
Dmitry A. Kazakov wrote:
> On 24 Jul 2005 07:24:38 -0700, Douglas Chong wrote:
>
>> I'm a newbie in Ada 95.
>> Can some one tell me what is the different between type and subtype ?
>> Both are look the same for me. Thanks
>
> "A subtype of a given type is a combination of the type, a constraint on
> values of the type, and certain attributes specific to the subtype. The
> given type is called the type of the subtype. Similarly, the associated
> constraint is called the constraint of the subtype. The set of values of a
> subtype consists of the values of its type that satisfy its constraint.
> Such values belong to the subtype."
Please the ARM is not the easiest reading, and do we have easier text one
can point to:
http://en.wikibooks.org/wiki/Programming:Ada:Subtypes#Type_vs._Subtype
Martin
--
mailto://krischik@xxxxxxxxxxxxxxxxxxxxx
Ada programming at: http://ada.krischik.com
.
- References:
- type and subtype
- From: Douglas Chong
- Re: type and subtype
- From: Dmitry A. Kazakov
- type and subtype
- Prev by Date: Re: type and subtype
- Next by Date: Re: Help needed for ada package
- Previous by thread: Re: type and subtype
- Next by thread: Re: type and subtype
- Index(es):
Relevant Pages
|