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,9bd91636f2b444a0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-02 11:18:49 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!206.228.179.2!news-peer1.sprintlink.net!news-in-east1.sprintlink.net!news.sprintlink.net!news.online-isp.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: how to print position number of an enumeration variable? Date: Tue, 2 Oct 2001 12:49:07 -0500 Organization: On Line Exchange Sender: randybru@sdsl-64-7-4-91.dsl.chi.megapath.net Message-ID: <9pcukb$td6$1@news.online-isp.com> References: <9p5rd30202n@drn.newsguy.com> <3uvt7.55862$QK.36794657@news1.sttln1.wa.home.com> <9p6b3m02v4v@drn.newsguy.com> <3BB6BB75.D88EECE3@worldnet.att.net> NNTP-Posting-Host: sdsl-64-7-4-91.dsl.chi.megapath.net X-Trace: news.online-isp.com 1002044875 30118 64.7.4.91 (2 Oct 2001 17:47:55 GMT) X-Complaints-To: news@news.online-isp.com NNTP-Posting-Date: 2 Oct 2001 17:47:55 GMT X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3719.2500 Xref: archiver1.google.com comp.lang.ada:13635 Date: 2001-10-02T17:47:55+00:00 List-Id: "mike@nospam" wrote: > > but 'pos is not listed as an attribute. I am looking at page 34-36 of the RM, > and I do not see such attribute for scalar types (that is why I asked), and enum > is scalar type. > > strange. But thanks! 'Pos isn't defined for scalar types; it's only defined for discrete types. (That is, it isn't defined for floats and fixed point types). Look in 3.5.5 to find the normative definition of 'Pos. Randy.