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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7359168033079675,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-10 11:47:12 PST Path: newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!isdnet!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: accesing internal codes used for an enumeration Date: Thu, 10 May 2001 14:45:44 -0400 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 989520431 22081 137.194.161.2 (10 May 2001 18:47:11 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 10 May 2001 18:47:11 +0000 (UTC) To: "'comp.lang.ada@ada.eu.org'" Return-Path: X-Mailer: Internet Mail Service (5.5.2448.0) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.3 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: newsfeed.google.com comp.lang.ada:7496 Date: 2001-05-10T14:45:44-04:00 > For an unchecked conversion to work, the sizes have to match > exactly! Not on DEC Ada (or Compaq Ada, whatever it's called). But, that's what I meant by "(defined large enough to hold the all the possible numbers)". Re-reading it I can see that it's unclear. I tend to be terse, but I meant the size of the integer (8, 16, 32, etc.) has to be big enough for the values used in the underlying representation. And yes they have to be the same size (for portability). I was taking that as a given (or implied), but thanks for making it clearer. Frank -----Original Message----- From: Jacob Sparre Andersen [mailto:sparre@nbi.dk] Sent: Tuesday, May 08, 2001 1:57 AM To: comp.lang.ada@ada.eu.org Subject: Re: accesing internal codes used for an enumeration Frank: > I'm not sure where it is, other than the description of enumerated > types. Since enumerated types map to an underlying integer > representation, your Uncheck_Conversion will be from the enumerated > type to an integer type (defined large enough to hold the all the > possible numbers). For an unchecked conversion to work, the sizes have to match exactly! Jacob -- Warning: Dates in calendars are closer than they appear. _______________________________________________ comp.lang.ada mailing list comp.lang.ada@ada.eu.org http://ada.eu.org/mailman/listinfo/comp.lang.ada