comp.lang.ada
 help / color / mirror / Atom feed
From: Peter Hermann <ica2ph@iris16.csv.ica.uni-stuttgart.de>
Subject: Re: Question about enumeration types
Date: 31 Jul 2001 09:59:21 GMT
Date: 2001-07-31T09:59:21+00:00	[thread overview]
Message-ID: <9k5vhp$5kc$1@infosun2.rus.uni-stuttgart.de> (raw)
In-Reply-To: 5ee5b646.0107260852.2dcba52a@posting.google.com

Robert Dewar <dewar@gnat.com> wrote:
> Reinert Korsnes <Reinert.Korsnes@ffi.no> 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)



      parent reply	other threads:[~2001-07-31  9:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-24 11:40 Question about enumeration types Reinert Korsnes
2001-07-24 12:23 ` Larry Hazel
2001-07-24 12:31 ` Marc A. Criley
2001-07-26 16:52 ` Robert Dewar
2001-07-27 13:04   ` Ken Garlington
2001-07-31  9:59   ` Peter Hermann [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox