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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,91b14dfe22ec5b78 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "David C. Hoos" Newsgroups: comp.lang.ada Subject: Re: Signed vs Natural/32-bits vs 31 bits Date: Wed, 27 Oct 2004 11:25:14 -0500 Organization: Cuivre, Argent, Or Message-ID: References: <35f054ea.0410250743.45a14771@posting.google.com> <35f054ea.0410270735.7892ff30@posting.google.com> NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1098894395 40918 212.85.156.195 (27 Oct 2004 16:26:35 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 27 Oct 2004 16:26:35 +0000 (UTC) Cc: "comp.lang.ada@ada.eu.org" To: "skidmarks" Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:5775 Date: 2004-10-27T11:25:14-05:00 Unchecked_Conversion only copies bits without any interpretation or movement of bits. When the two objects are of different sizes, only the bits in the source object are copied. For full details see RM95 13.9(1-5). If you want a 32-bit natural number, you need to declare an object of (say) type Interfaces.Unsigned_32; Then, instead of using an instance of Unchecked_Conversion, you do an explicit type conversion as described in RM95 4.6 ----- Original Message ----- From: "skidmarks" Newsgroups: comp.lang.ada To: < > Sent: Wednesday, October 27, 2004 10:35 AM Subject: Re: Signed vs Natural/32-bits vs 31 bits > David Hoos in a private communication indicated that the least > significant bit was (indeed) deleted. What is confusing about this > dialog is that I thought that 'Unchecked_Conversion' meant that all > bits were used and the bits were converted to the 'new' type. Under > this impression, my thought was that I'd have a 32-bit Natural number. > What I seem to be told is that that is not accurate and that > 'Unchecked_Conversion' takes less liberties than I'd hoped. Any idea > why? > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada-france.org > http://www.ada-france.org/mailman/listinfo/comp.lang.ada >