comp.lang.ada
 help / color / mirror / Atom feed
From: wdl39!mab@ford-wdl1.arpa  (Mark A Biggar)
Subject: Re: Enumerations
Date: 19 Sep 92 01:18:23 GMT	[thread overview]
Message-ID: <1992Sep19.011823.15070@wdl.loral.com> (raw)

In article <1992Sep18.175423.25826@seas.gwu.edu> mfeldman@seas.gwu.edu (Michael
 Feldman) writes:
>In article <1992Sep18.154145.6086@wdl.loral.com> mab@wdl39.wdl.loral.com (Mark
 A Biggar) writes:
>[ stuff deleted]
>
>>.. I also do not believe that Ada9x gives any relief in this area.
>Your use of the word "relief" suggests that you think something is broken
>here. What's wrong with this? Ada - as a matter of design philosophy -
>tries to separate abstraction from implementation. You write down a sequence
>of enumeration literals; 99.9% of the time you could not care less what the
>corresponding bits are. For the 0.1% of the time when you do care (oh, OK,
>so maybe it's a few percent), you use repspecs. This is bad? What's
>wrong with the implementer choosing an easy set of _default_ reps as
>long as your repspec override is obeyed faithfully?

It was suggested early in the Ada9X effort that there should be attributes
like 'POS and 'VAL that delt with the real stored values of enumerations.
These were dropped as part of the Zero-budget simplifications.
All I ment by relief was that Ada9x did not provide a more convienent method
of dealing with the stroed values of enumeration literals then that provided
by Ada83.

--
Mark Biggar
mab@wdl1.wdl.loral.com

             reply	other threads:[~1992-09-19  1:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-09-19  1:18 Mark A Biggar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-09-22 14:27 Enumerations Chris Elliott
1992-09-20 22:32 Enumerations Gary Morris @pulsar
1992-09-19  2:31 Enumerations Michael Feldman
1992-09-19  0:40 Enumerations John Goodenough
1992-09-18 17:54 Enumerations Michael Feldman
1992-09-18 15:41 Enumerations Mark A Biggar
1992-09-18  1:39 Enumerations Michael Feldman
1992-09-17 23:40 Enumerations Kevin Simonson
1992-09-17 22:26 Enumerations Darren Davenport 283-4173
1992-09-17 21:20 Enumerations david.c.willett
replies disabled

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