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,cae92f92d6a1d4b1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada.Execution_Time Date: Tue, 14 Dec 2010 15:02:51 -0600 Organization: Jacob Sparre Andersen Message-ID: References: <4d05e737$0$6980$9b4e6d93@newsspool4.arcor-online.net> <1ob32w7tezl5c.j348velixu95.dlg@40tude.net> <10872143-12a2-4d25-bb08-e236b15d2c18@o14g2000prn.googlegroups.com> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1292360573 21211 69.95.181.76 (14 Dec 2010 21:02:53 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 14 Dec 2010 21:02:53 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Xref: g2news2.google.com comp.lang.ada:16914 Date: 2010-12-14T15:02:51-06:00 List-Id: "Adam Beneschan" wrote in message news:10872143-12a2-4d25-bb08-e236b15d2c18@o14g2000prn.googlegroups.com... ... >Even in Ada 83, there were at least three different flavors of >pragmas. Some (LIST, PAGE) had no effect on the operation of the >resulting code. Some (OPTIMIZE, INLINE, PACK) could affect the >compiler's choice of what kind of code to generate, but the code would >produce the same results (unless the code explicitly did something to >create a dependency on the compiler's choice, such as relying on 'SIZE >of a record that may or may not be packed). And others (ELABORATE, >PRIORITY, SHARED, INTERFACE) definitely affected the results---the >program's behavior would potentially be different (or, in the case of >INTERFACE, be illegal) if the pragma were missing. I'm having trouble >figuring out a common thread that ties all these kinds of pragmas into >one unified concept---except, perhaps, that they are things that the >language designers found it PRAGMAtic to shove into the "pragma" >statement instead of inventing new syntax. :) :) :) I think you've got it. None of these things (in the last category) ought to have been pragmas in the first place. Note that pragmas are one of the few ways that implementers have to represent implementation-defined information, so in practice, we have lots of things that ought to never have been pragmas. At least Ada 2012 has finally come to grips with this, in that the aspect clause will be able to be used rather than almost all of the existing pragmas. (But not Elaborate, as the syntax doesn't work in a context clause, and no one has the energy to invent some other syntax solely for that purpose.) Note, however, that there will still be uses for the old pragmas (if you want to hide the aspects in the private part, for instance). But they should be used much less often. Randy.