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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38159b1b5557a2e7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-24 20:25:04 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!green.octanews.net!news.octanews.net!news-xfer.cox.net!peer02.cox.net!cox.net!pd7cy1no!shaw.ca!border1.nntp.ash.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!local1.nntp.sjc.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 24 Jan 2004 22:25:01 -0600 Date: Sat, 24 Jan 2004 23:24:59 -0500 From: "Robert I. Eachus" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Standard Ada Preprocessor (Was: why ada is so unpopular ?) References: <49cbf610.0401170627.79c3dfe5@posting.google.com> <400A9B48.3060100@noplace.com> <400BD4B5.6000307@noplace.com> <400BDB7C.40100@noplace.com> <400D2150.6000705@noplace.com> <400E72F9.8060501@noplace.com> <100upo7ln5e3k59@corp.supernews.com> <400FC8E8.2040100@noplace.com> <_JSdna166JuxFo3dRVn-hg@comcast.com> <401115B7.5020205@noplace.com> <401264ED.306@noplace.com> <4012927F.60401@noplace.com> In-Reply-To: <4012927F.60401@noplace.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.77.160 X-Trace: sv3-NrEQINYF5uQGSl68TiSQVLTU9ltgeEFFBnAuOZlt2VdjwqrX4OF6fzZBoXftFczW0/agJFp1AsE6GD+!bQBrEdtthtcEi67NHRbs4gu4T4tky3YI4Lo3+qfAw8PWtJ+Dz52xXWLncAul1A== X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net 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.1 Xref: archiver1.google.com comp.lang.ada:4790 Date: 2004-01-24T23:24:59-05:00 List-Id: Marin David Condic wrote: > Maybe conditional compilation is not the answer. But then let's come up > with something else. Sooner or later, I've got to have a way of > maintaining code that works in one place but not in another and relying > on external mechanisms is often difficult or impossible. (Handing source > code off to unknown destinations is a good example - you may not know > who or what is at the other end and may not be able to trust that they > have mechanisms or competence to manage multiple builds. Source code I > can trust because I can verify that it works as intended. Mechanisms > outside that are uncertain.) Totally agree, which is why I try to do it all in Ada source, with "if SSE then..." instead of "#ifdef SSE ..." The disadvantage of this approach is that the code must compile cleanly, even if it will be statically eliminated at compile time. I just haven't found that to be a major hurdle. I can easily see that happening if you are "up against the wall" with a compiler bug. But with GNAT, I have the source, and know how to use it. ;-) -- Robert I. Eachus "The war on terror is a different kind of war, waged capture by capture, cell by cell, and victory by victory. Our security is assured by our perseverance and by our sure belief in the success of liberty." -- George W. Bush