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,7dfca01aeef9a8c0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-31 02:59:22 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.174.75.178!news-fra1.dfn.de!news-koe1.dfn.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!not-for-mail From: Peter Hermann Newsgroups: comp.lang.ada Subject: Re: Question about enumeration types Date: 31 Jul 2001 09:59:21 GMT Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: <9k5vhp$5kc$1@infosun2.rus.uni-stuttgart.de> References: <3B5D5EA5.F20EC9D7@ffi.no> <5ee5b646.0107260852.2dcba52a@posting.google.com> NNTP-Posting-Host: iris16.csv.ica.uni-stuttgart.de User-Agent: tin/pre-1.4-980117 (UNIX) (IRIX/6.5 (IP22)) Xref: archiver1.google.com comp.lang.ada:10853 Date: 2001-07-31T09:59:21+00:00 List-Id: Robert Dewar wrote: > Reinert Korsnes wrote in message news:<3B5D5EA5.F20EC9D7@ffi.no>... >> I find it boring that extending the range of possible values of >> an enumeration type may easily cause conflicts with variable names, > Let me assume you mean tedious here instead of boring. > Well yes, it is part of the Ada design to favor the reader over the ^^^^^^^^^^^ > writer of code. Under certain circumstances, the compiler could use > type information to disambiguate: > type r is (a,b,c); > c : integer; [snipp] I have to thank Robert Dewar for spending his time for giving a useful elaborated lecture on this subject, which BTW is the answer for my casecrash problem some days ago. Convincing. My thanks to Tucker Taft, too. comp.lang.ada seems to be a precious source, indeed. (sometimes...) -- Peter Hermann Tel+49-711-685-3611 Fax3758 ica2ph@csv.ica.uni-stuttgart.de Pfaffenwaldring 27 Raum 114, D-70569 Stuttgart Uni Computeranwendungen http://www.csv.ica.uni-stuttgart.de/homes/ph/ Team Ada: "C'mon people let the world begin" (Paul McCartney)