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,FREEMAIL_FROM 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!news4.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: Mon, 25 Jul 2005 16:59:45 -0500 Newsgroups: comp.lang.ada Subject: Re: type and subtype References: <1122215078.559279.16980@f14g2000cwb.googlegroups.com> <87mzocrx9d.fsf@insalien.org> <_vPEe.3516$Uk3.77@newsread1.news.pas.earthlink.net> <0L7Fe.3$Jf6.1@dfw-service2.ext.ray.com> From: Ludovic Brenta Date: Mon, 25 Jul 2005 23:59:39 +0200 Message-ID: <871x5msg1g.fsf@tiscali.be> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:6FeE08BQMAxC0BtAh2eAe3R2pNA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 83.134.240.50 X-Trace: sv3-aIbdSUzLbPpRYDPyN36ba5nIdKkm3u6TB7B8RfRimNgj2RxfjHlzg9mec2A4XZ0SZ9ED7m3Z4eiKesE!G3dxIvRk+2o5gCXv8D/+cbSUuifPHmgGnuu5trWNf3gFT/MV6byoLH1hDI1saVE= 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:3771 Date: 2005-07-25T23:59:39+02:00 List-Id: Jeffrey Carter writes: > Dmitry A. Kazakov wrote: > Integer'Size = 32 > Natural'Size = 31 > > because representations of subtypes are not required to be the same. And this all confirms my initial point: conversions between subtypes of the same type involve run-time checks, which may raise Constraint_Error. Additionally, in some (but not all) cases, implicit conversions may involve changes in representation, i.e. an actual conversion which is not a no-op. -- Ludovic Brenta.