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-26 16:28:53 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!elnk-pas-nf1!newsfeed.earthlink.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: Mon, 26 Jan 2004 18:28:52 -0600 Date: Mon, 26 Jan 2004 19:28:50 -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> <10138603kq87jb4@corp.supernews.com> In-Reply-To: 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-kVp2qljYkhxn87L8Cv+Qa3zgKC5GQvPG0bRJhRZz0s8GhBxYs68gtvR+LMhISWJDbXDOxQBOZQhoOMe!YNI85KTA1T+3Fc7tEFNyOVqgszCZtQZQE7yjxQsHec69dTXVhHQHAx5f0S70qg== 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:4856 Date: 2004-01-26T19:28:50-05:00 List-Id: Warren W. Gay VE3WWG wrote: > I am not suggesting for a minute that the whole world needs to > release software in the same manner. It doesn't seem to bother > you to maintain multiple instances of similar code. I personally > hate it and would much rather have it centralized. We can disagree > on the preference. As long as you understand that the people arguing on both sides here actually know what they are talking about. Right now I don't do much embedded work. Randy's work with CLAW is probably among the goriest cases of a thick binding dealing with multiple environments around. > Can we agree on having a choice at least? Sure, you have that choice. There are several good pre-processors for Ada. Go, get one, use it. Pretty soon you will join Randy and I on the other side of the fence. Don't get me wrong, the GNAT pre-processor facilities are great, much better than cpp. But when you really try to use it you end up in self protection migrating as much pre-processor stuff as possible into one unit. Then once you start planning out the code you want for some change to that unit, then figuring out where to stick it in the middle of all the preprocessor directives, you will agree that multiple bodies are easier to maintain. ;-) (Incidently, there is an intermediate position you go through, and which works nicely for some units. The bodies of subprograms in the unit each turns into a case statement on the processor or compiler. But when I reach that point, I use Ada instead of the pre-processor for the case statements.) -- 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