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,37956b356498633,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-02 10:19:03 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!deine.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Lars Noschinski Newsgroups: comp.lang.ada Subject: Converting Char to Enum Date: Sat, 02 Mar 2002 19:17:24 +0100 Organization: privat Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1015093055 02 5237 zw4tTNpSSo-27u 020302 18:17:35 X-Complaints-To: abuse@t-online.com X-Sender: 028324156-0001@t-dialin.net User-Agent: Xnews/5.01.10 Hamster/1.3.23.1 X-Face: oM?#2"Er>_m_51.+2hz{m@^#yG{>M@3EkUQNbo>r_"n*f=F`1:PdT'~lt?9y(cJ6@m%Tkt&,kd2S7~Z:=}Z(,.Jw:S[icuY'@zQ)1/^ Hello! In my Ada95 program, I have a enumeration type defined as follows: type symbols is ('0', '1', 'B', 'T', 'U'); The program takes a string from the command-line and needs to convert the chars to symbols. At the moment, I use a case-construct, but I wonder if there is a more elegant possibility. CU Lars Noschinski