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!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.scarlet.biz!news.scarlet.biz.POSTED!not-for-mail NNTP-Posting-Date: Sun, 24 Jul 2005 11:20:54 -0500 Newsgroups: comp.lang.ada Subject: Re: type and subtype References: <1122215078.559279.16980@f14g2000cwb.googlegroups.com> From: Ludovic Brenta Date: Sun, 24 Jul 2005 18:20:46 +0200 Message-ID: <87mzocrx9d.fsf@insalien.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:/l9L7AaQaaz4VIiGeUf2T7CqW6Y= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 83.134.244.47 X-Trace: sv3-qkOfbgFeTMB6qhYsFetnXxZBoqVAfd7h1GC51/jbR7v2wrn/5Odg6OFH2Lu3zkbxdYO/a47cSsucmye!ycZG90ZVsHyHDQ6/wRXomtlmkxMnh++LZFPAjI1aqDjkwcreLYirer0DQaMB4XVYww== X-Complaints-To: abuse@scarlet.be X-DMCA-Complaints-To: abuse@scarlet.biz X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:3741 Date: 2005-07-24T18:20:46+02:00 List-Id: "Douglas Chong" writes: > 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 Two types are incompatible with one another. One can convert between different scalar types using an explicit type conversion. Two subtypes of the same type are compatible with one another. One can convert between them using an implicit type conversion (i.e. no special syntax required). Both implicit and explicit type conversions involve run-time checks. HTH