comp.lang.ada
 help / color / mirror / Atom feed
* Pragma for conditional compilation? (Ada 2005 vs. 95)
@ 2007-09-27  7:56 Jerry
  2007-09-27  9:31 ` Georg Bauhaus
                   ` (4 more replies)
  0 siblings, 5 replies; 26+ messages in thread
From: Jerry @ 2007-09-27  7:56 UTC (permalink / raw)


Is there a pragma to designate some lines of Ada for conditional
compilation depending on if the compiler is Ada 2005 or not?

I have made some bindings that use some of the declarations from Annex
G.3 which relates to vector-matrix stuff which is new to Ada 2005. If
the compiler provides those declarations (i.e., is 2005), I want to
use the compiler's version because I figure that is the cleanest way
to get things done. If the compiler is Ada 95, I instead want to
provide the declarations myself.

Currently, I handle this by commenting out the declarations of my own
if Ada 2005 and uncomment them if Ada 95. (There are a couple of
"with" and "use" lines that also have to be (un)commented but it is a
similar situation.)

I'm guessing this is an Ada "no-no" but would be interested to know
for sure.

Jerry




^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2007-09-30 10:54 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-27  7:56 Pragma for conditional compilation? (Ada 2005 vs. 95) Jerry
2007-09-27  9:31 ` Georg Bauhaus
2007-09-27 16:59   ` Pascal Obry
2007-09-27 21:56     ` Jerry
2007-09-27  9:52 ` Stephen Leake
2007-09-27  9:58 ` Brian Drummond
2007-09-27 15:26 ` anon
2007-09-27 21:46   ` Jerry
2007-09-28  4:55     ` Jeffrey R. Carter
2007-09-28 12:15       ` Jeffrey Creem
2007-09-28 14:06         ` Jean-Pierre Rosen
2007-09-28 15:24           ` Ludovic Brenta
2007-09-28 16:08             ` Jean-Pierre Rosen
2007-09-28 17:54               ` Georg Bauhaus
2007-09-28 18:19                 ` Pascal Obry
2007-09-28 20:02                   ` Stefan Bellon
2007-09-28 20:14                     ` Pascal Obry
2007-09-28 20:26                       ` Stefan Bellon
2007-09-29 10:24                     ` Stephen Leake
2007-09-28 20:04                   ` Simon Wright
2007-09-28 20:11                     ` Pascal Obry
2007-09-29 10:29                     ` Stephen Leake
2007-09-29 10:18               ` Stephen Leake
2007-09-28 18:07     ` anon
2007-09-29 22:13 ` Jerry
2007-09-30 10:54   ` Stephen Leake

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