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,LOTS_OF_MONEY 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-09-29 23:06:16 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!logbridge.uoregon.edu!pln-e!spln!dex!extra.newsguy.com!newsp.newsguy.com!drn From: mike@nospam Newsgroups: comp.lang.ada Subject: Re: how to print position number of an enumeration variable? Date: 29 Sep 2001 22:37:58 -0700 Organization: Newsguy News Service [http://newsguy.com] Message-ID: <9p6b3m02v4v@drn.newsguy.com> References: <9p5rd30202n@drn.newsguy.com> <3uvt7.55862$QK.36794657@news1.sttln1.wa.home.com> NNTP-Posting-Host: p-559.newsdawg.com X-Newsreader: Direct Read News 2.90 Xref: archiver1.google.com comp.lang.ada:13538 Date: 2001-09-29T22:37:58-07:00 List-Id: In article <3uvt7.55862$QK.36794657@news1.sttln1.wa.home.com>, "DuckE" says... > >Perhaps: > Put_Line( "the position number of the first enumeration element is " & > Integer'Image( Day_Type'Pos( Day_Type'First ) ) ); > >SteveD > 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! mike