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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1de1981df403322c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-07 10:05:43 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: snarflemike@yahoo.com (Mike Silva) Newsgroups: comp.lang.ada Subject: Re: New limited range type? Date: 7 Nov 2003 10:05:42 -0800 Organization: http://groups.google.com Message-ID: <20619edc.0311071005.15e6b9a8@posting.google.com> References: NNTP-Posting-Host: 154.6.152.68 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1068228342 950 127.0.0.1 (7 Nov 2003 18:05:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 7 Nov 2003 18:05:42 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:2219 Date: 2003-11-07T10:05:42-08:00 List-Id: "Martin Dowie" wrote in message news:... > Ok, as we're in "my favourite thing I'd like in Ada" season, here's mine... > > I'd like to be able to declare integer/float/fixed/decimal types that are > limited, at both ends, and never raise exceptions, e.g. > > type Safe_Degrees is > digits 6 limited range -180.0 .. +180.0; -- new use of 'limited' ..... If the details could be worked out I'd sure like to see it. It would answer a *very* common need in the "real world" that Ada was designed to address. Mike