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-19 07:50:39 PST Path: supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!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> Subject: Re: enumration using integers? Message-ID: Date: Thu, 19 Apr 2001 14:50:15 GMT NNTP-Posting-Host: 209.208.22.130 X-Complaints-To: abuse@newsranger.com X-Trace: www.newsranger.com 987691815 209.208.22.130 (Thu, 19 Apr 2001 10:50:15 EDT) NNTP-Posting-Date: Thu, 19 Apr 2001 10:50:15 EDT Organization: http://www.newsranger.com Xref: supernews.google.com comp.lang.ada:7004 Date: 2001-04-19T14:50:15+00:00 List-Id: In article <3ADEC4E8.954B6830@emw.ericsson.se>, Sven Nilsson says... > >If I want to make an enumerated type using integers, like: > > type Distance is (10, 20, 30, 40, 50); > >The compiler will complain about missing identifiers. How do I get the >blasted machine to understand that the integers are the identifiers I >want? It understands perfectly what you want. It just won't allow you to do that. :-) The next obvious question is *why* do you want to do this? What are you trying to accomplish with an enumeration of integers? --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com