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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-05 09:10:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!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: Re: Converting Char to Enum Date: Tue, 05 Mar 2002 16:55:27 +0100 Organization: privat Message-ID: References: <3C835426.DA864199@myob.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.t-online.com 1015348106 02 17952 +S7uTgYEShHcrk 020305 17:08:26 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/^ "David C. Hoos" wrote: > From: "Lars Noschinski" >> "David C. Hoos, Sr." wrote: >> | type Symbols is ('0', '1', 'B', 'T', 'U'); >> >> Is that really a subset of character? I'm asking, because the >> following code prints "'0'", "'B'" etc. and not "0", "B". >> > Take a look at two things, viz.: > > 1. The definition of the Character type in LRM A.1 (35) Ok, I see. Character is also an enumeration. > 2. The output of this program: So if I want to output only the character without the quotes, I have to convert it to string? In the case of type symbols with an indirection through type character, of course. BTW: Which online book/tutorial has a good explanation of the possibilities of type conversion in Ada? After doing PHP for a few weeks, I really see the advantages of a strong type system, but it needs some time to get familiar with it. CU Lars Noschinski