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-Thread: 103376,6426898aedaa5880 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 27 Sep 2007 04:48:35 -0500 From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: Pragma for conditional compilation? (Ada 2005 vs. 95) Date: Thu, 27 Sep 2007 10:58:25 +0100 Reply-To: brian@shapes.demon.co.uk Message-ID: References: <1190879769.361848.188220@22g2000hsm.googlegroups.com> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 86.146.172.121 X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-rL3hHcRMqFW7SrRytih30ub8H09bX/oevfloMDRJUq5QLpSiIGNhNkpxUBCgoUg2qU+HLBmpei7VaiF!SbmYGKeSBgIdVlaZjFbwa2V5/UXcjKb1rykjotsrXyl8FCs6XxBHnbNHUUON88ub4uMvbMVdBa88!FCMz X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.35 Xref: g2news2.google.com comp.lang.ada:2157 Date: 2007-09-27T10:58:25+01:00 List-Id: On Thu, 27 Sep 2007 00:56:09 -0700, Jerry wrote: >Is there a pragma to designate some lines of Ada for conditional >compilation depending on if the compiler is Ada 2005 or not? I'm new to Ada though some of the concepts are familiar from VHDL... There, one approach is to put the bindings in a package, and substitute different package bodies according to the environment. Would that work here? - Brian