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,f479f3331eef5353 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Extra footnote: Re: Size of Vector limited to 1024 MB of Heap Size Reply-To: anon@anon.org (anon) References: X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Wed, 25 Jun 2008 02:49:12 GMT NNTP-Posting-Host: 12.64.66.208 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1214362152 12.64.66.208 (Wed, 25 Jun 2008 02:49:12 GMT) NNTP-Posting-Date: Wed, 25 Jun 2008 02:49:12 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:864 Date: 2008-06-25T02:49:12+00:00 List-Id: RM for Ada 95 and Ada 2005 -- 3.5.4 ( 21 ) : says that an Integer must include the range -2**15+1 .. +2**15-1 aka -32768 .. +32767 but it is not limited to that range. Check RM 3.5.4 ( 26 ). The norm for PC's Integer is -2**32+1 .. +2**32-1 To verify what the true range is on your Ada system look at the Standard package. For GNAT it is build into the compiler so type "gnat standard >standard.ads" Then look at file "standard.ads" you will see lines: package Standard is pragma Pure(Standard); type Boolean is (False, True); type Integer is range -(2 ** 31) .. +(2 ** 31 - 1); subtype Natural is Integer range 0 .. +(2 ** 31 - 1); ... end Standard; Or try this program -- -- i.adb -- with Ada.Text_IO ; use Ada.Text_IO ; with Ada.Integer_Text_IO ; use Ada.Integer_Text_IO ; procedure i is begin put ( Integer'Last ) ; new_line ; end ; In , tmoran@acm.org writes: >> but in Ada: Integers are 4 bytes >The Ada 95 Reference Manual 3.5.4(21) says >"In an implementation, the range of Integer shall include the range >-2**15+1 .. +2**15-1." > Has this changed in Ada 2005?