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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.snarked.org!feeder.erje.net!eu.feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Elaboration order handling (Was: Bug in 'gnatmake') Date: Tue, 18 Jun 2013 11:09:37 +0200 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: <87ip1bg4z2.fsf_-_@adaheads.sparre-andersen.dk> References: <7f33982d-3bcf-452e-a3b3-3a0a28505ff1@x20g2000vbe.googlegroups.com> <87r4g0g9c0.fsf@adaheads.sparre-andersen.dk> NNTP-Posting-Host: 95.209.227.230.bredband.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: loke.gir.dk 1371546578 25588 95.209.227.230 (18 Jun 2013 09:09:38 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 18 Jun 2013 09:09:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Cancel-Lock: sha1:GX6wIxT3VGs5poceYtZjdnKR5AU= X-Original-Bytes: 1952 Xref: number.nntp.dca.giganews.com comp.lang.ada:181914 Date: 2013-06-18T11:09:37+02:00 List-Id: Simon Wright wrote: > Don't use -gnatE unless you really really want your code to be > portable to other compilers. You'd need to expend a lot of extra work > to include pragmas to ensure that elaboration takes place in an > appropriate order; GNAT does this for you if you leave out -gnatE. I really really want my code to be portable to other compilers. (But I also use Ada 2012, which currently counters that wish. Feel free to call me inconsistent.) And yes, occassionally I spend some time getting elaboration order right. Is there a reason the GNAT default elaboration ordering hasn't made its way into the reference manual? Greetings, Jacob -- Photos from the Faroe Islands: http://billeder.sparre-andersen.dk/The_Faroe_Islands/