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!news4.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Ranges and (non)static constraints Date: Fri, 17 Nov 2006 19:02:25 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1163679831.668031.123360@h54g2000cwb.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1163808145 15332 192.74.137.71 (18 Nov 2006 00:02:25 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Sat, 18 Nov 2006 00:02:25 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:nwOIioMFVyIuNO9loK603DA6/RQ= Xref: g2news2.google.com comp.lang.ada:7549 Date: 2006-11-17T19:02:25-05:00 List-Id: "Martin Krischik" writes: > On 16 Nov., 12:02, Maciej Sobczak wrote: >> Hi, >> >> type T is range 1 .. N; >> type U is new Integer range 1 .. M; >> >> N must be static, but M does not have to. >> Why and what is the real difference between T and U? > > Let me answer with a question: What value has T'Size? Good question. But perhaps a better question is: What is the range of T'Base? That's what determines overflows in intermediate expression results. - Bob