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,4ff929aa5c2b2834 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s72.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ranges and (non)static constraints References: <1pqs0gcno5o2t.1195tm9yap28b.dlg@40tude.net> <160ziiyah2n7g.5k340gtji747.dlg@40tude.net> In-Reply-To: <160ziiyah2n7g.5k340gtji747.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s72 1163793948 12.201.97.213 (Fri, 17 Nov 2006 20:05:48 GMT) NNTP-Posting-Date: Fri, 17 Nov 2006 20:05:48 GMT Date: Fri, 17 Nov 2006 20:05:48 GMT Xref: g2news2.google.com comp.lang.ada:7540 Date: 2006-11-17T20:05:48+00:00 List-Id: Dmitry A. Kazakov wrote: > > Actually it is not the machine which cannot, but the compiler. Why should I > care if an integer would fit a machine word? I agree. GNAT has gone a little ways in this direction, providing 64-bit integers on 32-bit machines. If I ever get around to defining NINA, it will accept any range for integer types. Of course, if you make them too big, objects of the type may raise Memory_Exhausted. There would be ways to create integer types that correspond to those supported by the HW, where that's important. And there'd be type Unbounded_Integer, providing use of the unbounded-integer library used by the compiler. -- Jeff Carter "Beyond 100,000 lines of code you should probably be coding in Ada." P. J. Plauger 26