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 X-Google-Thread: 103376,68ab861309518ae8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-19 06:06:39 PST Message-ID: <3ADEE1CA.903E49FE@amsjv.com> Date: Thu, 19 Apr 2001 14:02:02 +0100 From: Philip Anderson Organization: Alenia Marconi Systems ISD X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: enumration using integers? References: <3ADEC4E8.954B6830@emw.ericsson.se> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: cwmwkn0612.cwmbran.gecm.com X-Trace: 19 Apr 2001 13:54:25 GMT, cwmwkn0612.cwmbran.gecm.com Path: supernews.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!demon!btnet-peer0!btnet-feed5!btnet!newreader.ukcore.bt.net!pull.gecm.com!cwmwkn0612.cwmbran.gecm.com Xref: supernews.google.com comp.lang.ada:6997 Date: 2001-04-19T14:02:02+01:00 List-Id: Sven Nilsson wrote: > > Hello > > I have a little problem that I don't want to spend time solving... > > 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? Integers can't be identifiers, since identifiers must begin with a letter; that's Ada not the compiler. Use something like "I_10" or simply "Ten". -- hwyl/cheers, Philip Anderson Alenia Marconi Systems Cwmbr�n, Cymru/Wales