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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news2.google.com!proxad.net!news.cs.univ-paris8.fr!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Signed vs Natural/32-bits vs 31 bits Date: Thu, 28 Oct 2004 09:53:28 +0200 Organization: None Message-ID: <3180772.TNT8d03Rs9@linux1.krischik.com> References: <35f054ea.0410250743.45a14771@posting.google.com> <35f054ea.0410270735.7892ff30@posting.google.com> Reply-To: martin@krischik.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1098951761 01 21301 ZE2tXWxLPtMoqq2 041028 08:22:41 X-Complaints-To: usenet-abuse@t-online.de X-ID: TnQTRBZBQeKEMmIqocbqQdWpz2-lIZ3JKPtLHK3CfFB+PtZcmpYkgO User-Agent: KNode/0.8.0 Xref: g2news1.google.com comp.lang.ada:5785 Date: 2004-10-28T09:53:28+02:00 List-Id: skidmarks wrote: > 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? No. But the solution is clear: type Natural is new Standart.Natural; for Natural'Size use 32; or X : Natural := 0; for X'Size use 32; And you have 2 32 bit types. If you don't like confusion people then you can use My_Natural as identifier ;-). With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com