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,68ab861309518ae8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-20 06:58:20 PST Path: supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!cyclone.bc.net!feed-out.newsfeeds.com!newsfeeds.com!feed.newsfeeds.com!newsfeeds.com!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison Sender: usenet@www.newsranger.com References: <3ADEC4E8.954B6830@emw.ericsson.se> <3ADFC797.7D2D537D@emw.ericsson.se> Subject: Re: enumration using integers? Message-ID: Date: Fri, 20 Apr 2001 13:57:55 GMT NNTP-Posting-Host: 209.208.22.130 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 987775075 209.208.22.130 (Fri, 20 Apr 2001 09:57:55 EDT) NNTP-Posting-Date: Fri, 20 Apr 2001 09:57:55 EDT Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:7037 Date: 2001-04-20T13:57:55+00:00 List-Id: In article <3ADFC797.7D2D537D@emw.ericsson.se>, Sven Nilsson says... > >in calculations. Something like this: > > type Distance is (10, 15, 20, 37); > Dist : Distance := 15; > Result : Integer := 0; Hmm. I don't see anything in the above that couldn't have been done by making Distance a sybtype of Integer. Are you saying that you just want an integer type with "holes" in it, so that Dist := 2; would raise a Constraint_Error? --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com