From: anon@anon.org (anon)
Subject: Re: Conditional Compilation in Ada
Date: Wed, 01 Jul 2009 00:18:17 GMT
Date: 2009-07-01T00:18:17+00:00 [thread overview]
Message-ID: <dXx2m.96342$d36.11965@bgtnsc04-news.ops.worldnet.att.net> (raw)
In-Reply-To: 5618a901-6b05-4a60-8362-7821261da50b@f19g2000yqo.googlegroups.com
Below, is an eample code of the new conditional statements, introduce in
"GNAT GPL 2009 Ada" and must be compiled with "g++". In this new
type of condition statement the conditional must have the following format:
'(' <conditional statement> ')'
Mostly undocumented in the GNAT.
I have not used this type of statement. And personally I think its to close of
C-like statement instead of Ada.
-- Comes from line 565 .. 572 in "A-Text_IO.adb" for GNAT GPL 2009
if ch = EOF then
raise End_Error;
else
Item :=
(if not Is_Start_Of_Encoding (Character'Val (ch), File.WC_Method)
then Character'Val (ch)
else Get_Upper_Half_Char_Immed (Character'Val (ch), File));
end if;
In <5618a901-6b05-4a60-8362-7821261da50b@f19g2000yqo.googlegroups.com>, Pablo <pablittto@gmail.com> writes:
>Hi, does someone know how to make conditional compilation in Ada with
>Scenarios? Say, I need to hide from compilation a part of an Ada code
>in some Scenario mode.
prev parent reply other threads:[~2009-07-01 0:18 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 11:10 Conditional Compilation in Ada Pablo
2009-06-29 11:42 ` sjw
2009-06-29 12:01 ` Chrono
2009-06-29 12:30 ` Dmitry A. Kazakov
2009-06-29 12:15 ` sjw
2009-06-29 18:00 ` Chrono
2009-06-29 20:02 ` sjw
2009-06-30 10:41 ` Chrono
2009-06-29 20:13 ` Robert A Duff
2009-06-30 15:39 ` Per Sandberg
2009-06-30 17:03 ` Chrono
2009-06-30 20:09 ` sjw
2009-06-30 20:15 ` sjw
2009-07-01 16:20 ` Per Sandberg
2009-07-01 0:18 ` anon [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox