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 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-23 17:50:01 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail Message-ID: <4011CF46.3040001@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Standard Ada Preprocessor References: <400BDB7C.40100@noplace.com> <400D2150.6000705@noplace.com> <400E72F9.8060501@noplace.com> <400FD4F7.8050805@noplace.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 24 Jan 2004 01:50:00 GMT NNTP-Posting-Host: 209.165.29.5 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.atl.earthlink.net 1074909000 209.165.29.5 (Fri, 23 Jan 2004 17:50:00 PST) NNTP-Posting-Date: Fri, 23 Jan 2004 17:50:00 PST Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:4749 Date: 2004-01-24T01:50:00+00:00 List-Id: Even in embedded work it is sometimes important. I might have code that relates to some breadboard version of the system that dummies up some stuff that exists differently on the "real" hardware. Or I might want to make a version of some of the code that operates on a workstation by faking out hardware that exists in the real unit. Or I might have multiple turns of a hardware board that each have peculiarities that need to be coded around. Or I might have multiple versions of an RTOS with variations on system calls that change from one version to the next. I've encountered all of these in real-world situations and sometimes I might have dealt with them by having separate bodies (often really difficult to manage in practice) or I dealt with them via conditional compilation because I was using C. I just know it happens enough where conditional compilation would be a useful thing and not always a matter of abuse. If someone thinks it isn't really needed because it can be dealt with via some kind of CM or build process - I'd suggest they need to work in some of the environments I've been in where you either don't have the tools or there are all sorts of complications that make this really hard to do. Conditional compilation isn't always pretty - but then neither are rep clauses or other things that are regularly done because that's the easiest way to get the job done. MDC Warren W. Gay VE3WWG wrote: > > There is still a strong need for conditional compilation. > Not for embedded work, since you have very specific > targets for that code. But if Ada is to support the > general purpose computing environment, and to support > portability, it must have better facilities for the > portability issues that come up. > -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m o d c @ a m o g c n i c . r "Face it ladies, its not the dress that makes you look fat. Its the FAT that makes you look fat." -- Al Bundy ======================================================================