Re: 'Base
- From: "Jeffrey R. Carter" <spam@xxxxxxxx>
- Date: Thu, 08 Dec 2005 19:51:45 GMT
Martin Dowie wrote:
type T'Base is -42 .. 42;
It isn't -42 .. 42 but the 'First .. 'Last or the underlying integer representation. In this case (with ObjectAda) -2147483648 to 2147483647.
-42 .. 42 is the minimum range of the Base type, but since the base type for an integer type typically maps to something supported by the hardware, this is an unlikely representation.
I'm surprised ObjectAda uses 32 bits for this. GNAT 3.4.2 uses 8 bits (-128 .. 127).
-- Jeff Carter "Why don't you bore a hole in yourself and let the sap run out?" Horse Feathers 49 .
- Follow-Ups:
- Re: 'Base
- From: Matthew Heaney
- Re: 'Base