comp.lang.ada
 help / color / mirror / Atom feed
From: aschwarz@acm.org (skidmarks)
Subject: Re: Signed vs Natural/32-bits vs 31 bits
Date: 29 Oct 2004 10:14:31 -0700
Date: 2004-10-29T10:14:31-07:00	[thread overview]
Message-ID: <35f054ea.0410290914.4e052e36@posting.google.com> (raw)
In-Reply-To: 3180772.TNT8d03Rs9@linux1.krischik.com

> 
> 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



      reply	other threads:[~2004-10-29 17:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25 15:43 Signed vs Natural/32-bits vs 31 bits skidmarks
2004-10-25 19:57 ` Mark H Johnson
2004-10-25 22:40 ` Jeffrey Carter
2004-10-27 15:35   ` skidmarks
2004-10-27 16:25     ` David C. Hoos
2004-10-28  7:53     ` Martin Krischik
2004-10-29 17:14       ` skidmarks [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox