comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: type and subtype
Date: Sun, 24 Jul 2005 16:39:38 +0200
Date: 2005-07-24T16:39:36+02:00	[thread overview]
Message-ID: <8z48c1qpzke3.1no8cx1dyy7zf$.dlg@40tude.net> (raw)
In-Reply-To: 1122215078.559279.16980@f14g2000cwb.googlegroups.com

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."
       -- ARM 3.2(8)

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2005-07-24 14:39 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 [this message]
2005-07-25 17:07   ` Martin Krischik
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