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,d9d2bccce5d4fc93 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!news.mv.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: integer questia Date: Mon, 26 Apr 2010 19:11:12 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1272323453 14273 192.74.137.71 (26 Apr 2010 23:10:53 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 26 Apr 2010 23:10:53 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:m4O1gH3Azzt4MCFkP+gJ61dRmXI= Xref: g2news2.google.com comp.lang.ada:11194 Date: 2010-04-26T19:11:12-04:00 List-Id: bedriemir writes: > what is the relation of root_integer , universal_integer and Integer universal_integer is sort of like root_integer'Class. All integer types you declare are implicitly derived from root_integer. Integer, which is Standard.Integer, is derived from root_integer as usual. "Integer" is badly named (since it's not the true infinite set of integers), and Standard is badly named (since it contains types like Integer with non-standard, implementation-defined ranges). Typically, Integer has a range of -2**31..2**31-1. Most of the time, root_integer and universal_integer expressions have static values (known at compile time), and therefore have infinite range. For example, you can say: N : constant := 2**999; even though your computer doesn't have 999 bits in a machine integer. At run-time, however, root_integer and universal_integer expressions will use the largest integer type supported at run time (64-bits, in GNAT). - Bob