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-Thread: 103376,db88d0444fafe8eb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Fri, 23 Sep 2005 18:05:41 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <1125544603.561847.32140@g47g2000cwa.googlegroups.com> <14muavojz308w.1ouv7xin79rqu$.dlg@40tude.net> <87fyspgqrm.fsf@mid.deneb.enyo.de> Subject: Re: Surprise in array concatenation Date: Fri, 23 Sep 2005 18:09:27 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-oVBNdRWRuqOjwCxe/JPL5Ij/KHzp5XqFPJiTTMegHIuxeeSXSTCHXG6AjAPMHWRTbVFhRzuWSi5oWiN!ZkdGSjEgrF+J4iNkojjwtSijMN3Rx/8jDXXyZ6VSqViP1k1i93oh90UDztvuzo0tCoVgqUn6IoNm X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:5076 Date: 2005-09-23T18:09:27-05:00 List-Id: wrote in message news:zSFTe.4078$wk6.1150@newssvr11.news.prodigy.com... > I recall a project where an Ada newbie, having learned about enumerated > types, created one enumerated type that was three pages long. That is, > the number of values in the type was so great that it took three pages > of 11 X 14 standard printer paper to contain it. Hey, I resemble that remark! The intermediate code definition for Janus/Ada includes an enumeration of 300 or so operations. The definition covers several pages (it has comments). That's used as the discriminant on a giant variant record that covers more than 6 pages. No newbies here. :-) It's very useful for this to be an enumeration; when new operations are added, the case statements in the optimizer and elsewhere fail to compile until they've been updated with the new operations. That's a short term pain, but it avoids a lot of problems in the long run (because the operations were added considering impacts, rather than either forgotten or defaulted to something that's likely to be wrong). And, yes, Bob, it's not unusual to make arrays of (parts) of this type. Randy.