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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.glorb.com!wn11feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada From: anon@anon.org (anon) Subject: Re: Conditional Compilation in Ada Reply-To: anon@anon.org (anon) References: <5618a901-6b05-4a60-8362-7821261da50b@f19g2000yqo.googlegroups.com> X-Newsreader: IBM NewsReader/2 2.0 Message-ID: Date: Wed, 01 Jul 2009 00:18:17 GMT NNTP-Posting-Host: 12.64.120.114 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1246407497 12.64.120.114 (Wed, 01 Jul 2009 00:18:17 GMT) NNTP-Posting-Date: Wed, 01 Jul 2009 00:18:17 GMT Organization: AT&T Worldnet Xref: g2news2.google.com comp.lang.ada:6777 Date: 2009-07-01T00:18:17+00:00 List-Id: 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: '(' ')' 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 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.