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: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: GNAT and user-defined aspects and pragmas? Date: Thu, 12 Nov 2015 13:27:00 -0600 Organization: JSA Research & Innovation Message-ID: References: <87h9ku2dcp.fsf@adaheads.sparre-andersen.dk> NNTP-Posting-Host: rrsoftware.com X-Trace: loke.gir.dk 1447356421 6385 24.196.82.226 (12 Nov 2015 19:27:01 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 12 Nov 2015 19:27:01 +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.6157 Xref: news.eternal-september.org comp.lang.ada:28330 Date: 2015-11-12T13:27:00-06:00 List-Id: "Simon Wright" wrote in message news:lyd1vgkct0.fsf@pushface.org... > Dennis Lee Bieber writes: > >> From the beginning (back in the days of mil-std 1815) pragmas >> were, loosely, suggestions to the compiler -- they were not supposed >> to have any effect on the correctness of a program (for example, >> Inline -- the program should produce the same final result when >> executed whether a function was inlined or not). > > Import? Export? (OK, Ada95) Those should never have been pragmas; they definitely don't fit under the model of pragmas as described above. But since those are pragmas (and many other implementation-defined things like them), the notion that unknown pragmas can be ignored is fantasy. It's more harmful than helpful (which is probably why every Ada implementation that I know of has stern warnings for ignoring a pragma). Randy.