From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fad7742cc8dcbb84 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!newsfeed.inode.at!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: type and subtype Date: Mon, 25 Jul 2005 19:07:13 +0200 Organization: Cablecom Newsserver Message-ID: <1494808.BqDB7Ljj3i@linux1.krischik.com> References: <1122215078.559279.16980@f14g2000cwb.googlegroups.com> <8z48c1qpzke3.1no8cx1dyy7zf$.dlg@40tude.net> NNTP-Posting-Host: 84-73-3-177.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1122312616 6012 84.73.3.177 (25 Jul 2005 17:30:16 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Mon, 25 Jul 2005 17:30:16 +0000 (UTC) User-Agent: KNode/0.9.0 Xref: g2news1.google.com comp.lang.ada:3760 Date: 2005-07-25T19:07:13+02:00 List-Id: 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