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,8623fab5750cd6aa X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-out.ntli.net!newsrout1.ntli.net!news-in.ntli.net!ntli.net!newspeer1-win.server.ntli.net!newsfe2-gui.server.ntli.net.POSTED!53ab2750!not-for-mail From: "Dr. Adrian Wrigley" Subject: Re: Improving Ada's image - Was: 7E7 Flight Controls Electronics User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Message-Id: Newsgroups: comp.lang.ada References: <40b9c99e$0$268$edfadb0f@dread16.news.tele.dk> <8xlxc.27603$sS2.845496@news20.bellglobal.com> <1086715817.122983@master.nyc.kbcfp.com> <1086733411.736049@master.nyc.kbcfp.com> <3Auxc.11998$XY6.1296622@read2.cgocable.net> <40C85035.4020706@noplace.com> <40C9EC3B.60304@noplace.com> <40CD90A4.8030005@noplace.com> <40CEDCB5.9000509@noplace.com> <1087325485.307616@master.nyc.kbcfp.com> <1087488758.881520@master.nyc.kbcfp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: Sun, 20 Jun 2004 16:06:53 +0100 NNTP-Posting-Host: 81.100.88.147 X-Complaints-To: http://www.ntlworld.com/netreport X-Trace: newsfe2-gui.server.ntli.net 1087747624 81.100.88.147 (Sun, 20 Jun 2004 16:07:04 GMT) NNTP-Posting-Date: Sun, 20 Jun 2004 16:07:04 GMT Organization: ntl Cablemodem News Service Xref: g2news1.google.com comp.lang.ada:1714 Date: 2004-06-20T16:06:53+01:00 List-Id: On Sat, 19 Jun 2004 16:54:14 -0400, Robert I. Eachus wrote: > I do think it is a shame though that Ada returns the upper case version > of the name, not the spelling used to declare the type... I strongly agree with this view! It is an enormous extra effort to get the case right when outputting an enumeration in a program. In particular, you probably end up having to declare and pass "To_String" functions as additional parameters to generic packages etc., simply to get the casing right. When you don't go to the effort of fixing up the case, and just ouput all upper case, it makes it look like software from the '70s. Is it not possible to do *something* about this irksome (if minor) feature for the upcoming 200Y compilers. Maybe a Representation clause? An additional attribute? A compiler option? A pragma? It seems like such a minor amount of work to fix this! Would the incompatibility be unnacceptable (to 200Y) simply to state that the case of Enum'Image is exactly as in the declaration. It could break certain (odd) programs, but that is what the -95 switch is there for. I could post some examples where getting the case wrong is particularly bad - but you can probably make up some of your own. -- Adrian Wrigley, Cambridge, UK.