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,16e3a8dd4f3ab3f3 X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: Elaboration order Date: 1996/03/19 Message-ID: <314EE48E.7F5A@escmail.orl.mmc.com>#1/1 X-Deja-AN: 143111196 references: <314701A1.469D@lfwc.lockheed.com> <31494143.3825@lfwc.lockheed.com> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Marine Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (X11; I; HP-UX A.09.01 9000/750) Date: 1996-03-19T00:00:00+00:00 List-Id: Robert Dewar wrote: > > " More important, it is possible to write a legal (Ada 83 and 95) > program which reads input from a file, command line, or even a > terminal, before the main program is called. If you work at it > (exercise left to the reader) it is possible to write the program so > that there are two different interesting and legal elaboration orders, > and inputs that cause Program_Error with one elaboration order excute > successfully with the other. Of course, for toy examples, there is ..." (snip) > This sounds VERY bogus, I would NEVER do this kind of initialization > at elaboration time -- this is NOT what elaboratoin is intended for, > but rather, in my book, a gross misuse of the concept! I completely agree, but it doesn't mean others won't do it. I was given some code to debug once which was crashing 4 HOURS into elaboration. Who knows how long elaboration would have taken without the crash? -- T.E.D. | Work - mailto:dennison@escmail.orl.mmc.com | | Home - mailto:dennison@iag.net | | URL - http://www.iag.net/~dennison |