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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b0d68c502c0ae6 X-Google-Attributes: gid103376,public From: Richard D Riehle Subject: Re: Printing Enum Variable Re: Linux World Date: 1999/03/04 Message-ID: <7bkt4b$63j@sjx-ixn5.ix.netcom.com>#1/1 X-Deja-AN: 451006238 References: <7bfc2n$jl9@dfw-ixnews5.ix.netcom.com> <7bhh26$r7c$1@remarQ.com> <36DCAC1F.430E2C5E@aasaa.ofe.org> <7bk5c2$8ge$1@remarQ.com> <36DDA9BA.E005E578@aasaa.ofe.org> Organization: Netcom X-NETCOM-Date: Wed Mar 03 7:02:35 PM PST 1999 Newsgroups: comp.lang.ada Date: 1999-03-03T19:02:35-08:00 List-Id: >Actually, it rather annoyed me to find it in all caps. I typed into the >program with initial caps for a reason. If it's not something that goes >out to a user, why worry about it? A follow-up to my earlier post about Put in Enumeration_IO. I notice you are concerned about this problem with the 'Image attribute. The following code should handle this problem quite nicely, with Ada.Characters.Handling; with Ada.Text_IO; use Ada; use Characters; procedure Test_Handling is begin Ada.Text_IO.Put(Handling.To_Lower(Boolean'Image(True))); end Test_Handling; For some odd reason, people are still not getting used to the idea of using the Character and String packages pre-defined in Annex A. A lot of problems are solved easily using these services. Richard Riehle richard@adaworks.com http://www.adaworks.com