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.3 required=5.0 tests=BAYES_00,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: "Mike Silva" Subject: Wrap-Up (was Re: Unchecked_Conversion on different sized types -- problem?) Date: 2000/01/14 Message-ID: #1/1 X-Deja-AN: 572616214 References: X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: news@wenet.net X-Trace: news.wenet.net 947867414 206.169.137.33 (Fri, 14 Jan 2000 08:30:14 PST) NNTP-Posting-Date: Fri, 14 Jan 2000 08:30:14 PST Newsgroups: comp.lang.ada Date: 2000-01-14T00:00:00+00:00 List-Id: Well, here's what I learned: 1) I can explicitly set the size of enumeration elements to Integer'Size, avoiding the problem of converting between different-sized objects. 2) I can't even type in the simplest sample code without making a mistake (I wasn't really using Text_IO.Put to send an Integer...) 3) I didn't think my problem all the way through -- since what I wanted in the end was an enumeration-to-string mapping, there was no need to deal with intermediate integers. 4) Enumerations with representation clauses seem to be a little like piggy banks -- easy to fill, but harder to extract from. So, my solution is to map an enumeration to an array of strings. Thanks to all for your comments. Mike