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=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7e29322ee367c19d X-Google-Attributes: gid103376,public From: "Matthew Heaney" Subject: Re: Unchecked_Conversion on different sized types -- problem? Date: 2000/01/14 Message-ID: #1/1 X-Deja-AN: 572352974 Content-transfer-encoding: 7bit References: <387E574A.146BD794@home.com> Content-Type: text/plain; charset="US-ASCII" X-ELN-Date: Thu Jan 13 16:35:49 2000 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 947810149 38.26.193.119 (Thu, 13 Jan 2000 16:35:49 PST) Organization: EarthLink Network, Inc. Mime-version: 1.0 NNTP-Posting-Date: Thu, 13 Jan 2000 16:35:49 PST Newsgroups: comp.lang.ada Date: 2000-01-14T00:00:00+00:00 List-Id: In article <387E574A.146BD794@home.com> , Bryce Bardin wrote: > But why use a representation clause for Color? > > type Color is ( Black, White ); > -- for Color use ( Black => 30, White => 37 ); Better yet, why even use an enumeration type at all? type Color is new Integer; Black : constant Color := 30; White : constant Color := 37; Matt -- Evolution is as well documented as any phenomenon in science, as strongly as the earth's revolution around the sun rather than vice versa. Stephen Jay Gould, Time, 23 Aug 1999