comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: GNAT and user-defined aspects and pragmas?
Date: Thu, 12 Nov 2015 13:27:00 -0600
Date: 2015-11-12T13:27:00-06:00	[thread overview]
Message-ID: <n22p65$67h$1@loke.gir.dk> (raw)
In-Reply-To: lyd1vgkct0.fsf@pushface.org


"Simon Wright" <simon@pushface.org> wrote in message 
news:lyd1vgkct0.fsf@pushface.org...
> Dennis Lee Bieber <wlfraed@ix.netcom.com> 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.


  reply	other threads:[~2015-11-12 19:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-10 13:28 GNAT and user-defined aspects and pragmas? Jacob Sparre Andersen
2015-11-10 19:53 ` Dennis Lee Bieber
2015-11-11  9:29   ` Jacob Sparre Andersen
2015-11-12 19:24     ` Randy Brukardt
2015-11-12 20:37       ` Shark8
2015-11-12 21:42         ` Randy Brukardt
2015-11-13 10:03       ` J-P. Rosen
2015-11-11 11:14   ` Simon Wright
2015-11-12 19:27     ` Randy Brukardt [this message]
2015-11-13  8:51       ` J-P. Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox