comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: type and subtype
Date: Mon, 25 Jul 2005 19:07:13 +0200
Date: 2005-07-25T19:07:13+02:00	[thread overview]
Message-ID: <1494808.BqDB7Ljj3i@linux1.krischik.com> (raw)
In-Reply-To: 8z48c1qpzke3.1no8cx1dyy7zf$.dlg@40tude.net

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@users.sourceforge.net
Ada programming at: http://ada.krischik.com




  reply	other threads:[~2005-07-25 17:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-24 14:24 type and subtype Douglas Chong
2005-07-24 14:39 ` Dmitry A. Kazakov
2005-07-25 17:07   ` Martin Krischik [this message]
2005-07-24 16:20 ` Ludovic Brenta
2005-07-24 16:40   ` Jeffrey Carter
2005-07-25  8:23     ` Dmitry A. Kazakov
2005-07-25 15:41       ` Jeffrey Carter
2005-07-25 21:59         ` Ludovic Brenta
2005-07-26  8:21         ` Dmitry A. Kazakov
2005-07-25 17:02 ` Martin Krischik
replies disabled

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