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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,967a201c4428b348 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-02 13:40:08 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!prodigy.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr11.news.prodigy.com.POSTED!not-for-mail From: "Pat Rogers" Newsgroups: comp.lang.ada References: <3FF57910.60406@noplace.com> Subject: Re: Enumeration representation X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: NNTP-Posting-Host: 208.191.177.108 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr11.news.prodigy.com 1073079573 ST000 208.191.177.108 (Fri, 02 Jan 2004 16:39:33 EST) NNTP-Posting-Date: Fri, 02 Jan 2004 16:39:33 EST Organization: SBC http://yahoo.sbc.com X-UserInfo1: TSU[@I_A\S@USVT^ORHL_IXBUSXHQD\MNPWZKB]MPXHBTWICYFWUQBKZQLYJX\_ITFD_KFVLUN[DOM_A_NSYNWPFWNS[XV\I]PZ@BQ[@CDQDPCL^FKCBIPC@KLGEZEFNMDYMKHRL_YYYGDSSODXYN@[\BK[LVTWI@AXGQCOA_SAH@TPD^\AL\RLGRFWEARBM Date: Fri, 02 Jan 2004 21:39:33 GMT Xref: archiver1.google.com comp.lang.ada:4051 Date: 2004-01-02T21:39:33+00:00 List-Id: > However, Our tools still generate this kind > of code and old programmer's habbits die hard. People still do it. I > wonder if it causes any harm by way of inefficiency in some respect? That depends upon the compiler recognizing it as a "confirming representation clause", ie a special case that does not change anything. I would expect all of them do now; certainly the ones I know do. Still, I think it is bad form to put them in when no longer required, just in case your compiler does not recognize that nothing is changed. The resulting code generated can be really ugly (in terms of performance). -- Pat Rogers Technical Editor, Ada Letters progers@classwide.com