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,91b14dfe22ec5b78 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews1.google.com!not-for-mail From: aschwarz@acm.org (skidmarks) Newsgroups: comp.lang.ada Subject: Re: Signed vs Natural/32-bits vs 31 bits Date: 29 Oct 2004 10:14:31 -0700 Organization: http://groups.google.com Message-ID: <35f054ea.0410290914.4e052e36@posting.google.com> References: <35f054ea.0410250743.45a14771@posting.google.com> <35f054ea.0410270735.7892ff30@posting.google.com> <3180772.TNT8d03Rs9@linux1.krischik.com> NNTP-Posting-Host: 199.46.200.230 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1099070072 5784 127.0.0.1 (29 Oct 2004 17:14:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 29 Oct 2004 17:14:32 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:5883 Date: 2004-10-29T10:14:31-07:00 List-Id: > > type Natural is new Standart.Natural; > for Natural'Size use 32; > > or > > X : Natural := 0; > for X'Size use 32; > This had already been tried with the effect that arithmetic operations were no longer valid, to wit, X / 10, X mod 10. I don't know if this is just a compiler issue or whether this is a more fundamental problem. (If I remember correctly, the 'use' clause did not work either). David Hoos mentioned that: Interface.Unsigned_32 would be the way to go. I haven't tried this yet. art