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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,630c12e823d1bdf4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-10 15:17:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!npeer.de.kpn-eurorings.net!news.uni-stuttgart.de!nntp.cs.uni-magdeburg.de!RRZ.Uni-Koeln.DE!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Hijacking a Thread was RE: New Ada compiler for .NET Date: Fri, 10 Jan 2003 23:17:34 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <1040653133.613605@master.nyc.kbcfp.com> <3e18f3f3_1@news.tm.net.my> <6KwmrO7CZtnj@eisner.encompasserve.org> <1041910244.361888@master.nyc.kbcfp.com> <3E1E5604.5030209@nospam.adrianhoe.com> <1042177570.752923@master.nyc.kbcfp.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1042240654 23430 134.91.1.34 (10 Jan 2003 23:17:34 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 10 Jan 2003 23:17:34 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:32898 Date: 2003-01-10T23:17:34+00:00 List-Id: Hyman Rosen wrote: : What situations lead one to declare a type which is limited to a : range of integers? I'm thinking fixed-size arrays, which I usually : consider to be a design error. not necessarily fixed, array(few range <>) implies arrays with an upper limit of components. add: - documentary value, - Design by Contract (since a number is required to be between some lo and hi, and a function ensures a number is in some range indicated by the return type) - building non-overlapping subtypes - and, in general, if the "problem space" has some items ranging between some lo and hi, such that an enumeration would not be practical. -- georg