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,971aa11c293c3db1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-22 06:07:57 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!opentransit.net!wanadoo.fr!not-for-mail From: "Bertrand Augereau" Newsgroups: comp.lang.ada Subject: Re: Ada The Best Language? Date: Sun, 22 Jul 2001 15:13:11 +0200 Organization: Wanadoo, l'internet avec France Telecom Message-ID: <9jej7c$7q1$1@wanadoo.fr> References: <5be89e2f.0107170838.c71ad61@posting.google.com> <5be89e2f.0107180235.726d46a8@posting.google.com> <9j3rrd$g71$1@s1.read.news.oleane.net> <5be89e2f.0107181300.4b4e93d7@posting.google.com> <3B57195E.A3A3FED@home.com> <9j93u6$1ua8$1@norfair.nerim.net> <3B586A17.862BA84D@home.com> <9j9s3t$kn8$1@wanadoo.fr> NNTP-Posting-Host: afontenayssb-103-1-1-240.abo.wanadoo.fr X-Trace: wanadoo.fr 995807276 8001 217.128.72.240 (22 Jul 2001 13:07:56 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 22 Jul 2001 13:07:56 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Xref: archiver1.google.com comp.lang.ada:10416 Date: 2001-07-22T13:07:56+00:00 List-Id: > No, they're not. Enums are simply names for integer values > that can be assigned to integers, used in place of an integer in > an expression, or passed as an argument to functions with an > integer argument type. Enum defines a new type. I don't see the flaw of having an implicit conversion to int, as long as there's is no implicit conversion to the enum. > Furthermore, you can't get the name of an enum value as a > string intrinsically from the type. In Ada, the 'Image attribute > returns the name of the enumeration value. That is true, I love 'image