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-Thread: 103376,c35edbbda4c7f58f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!wns14feed!worldnet.att.net!attbi_s03.POSTED!53ab2750!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Conditional compilation in Ada? References: <1100632383.66582@master.nyc.kbcfp.com> X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 67.161.24.234 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s03 1100635676 67.161.24.234 (Tue, 16 Nov 2004 20:07:56 GMT) NNTP-Posting-Date: Tue, 16 Nov 2004 20:07:56 GMT Organization: Comcast Online Date: Tue, 16 Nov 2004 20:08:00 GMT Xref: g2news1.google.com comp.lang.ada:6232 Date: 2004-11-16T20:08:00+00:00 List-Id: > The OP is running two separate programs. I beg to quibble. If a program acts differently depending on a command line parameter, is it two different programs? The parameter is certainly static during any one run. If a program (an OS, say) examines its hardware environment and then uses/ignores certain code depending on what's there, is it one program or many? If a program has a Windows version and a Linux version, is it two different programs? The concept of "a single program" is ill-defined. > There should be a better solution than forcing him to make runtime tests > for something which is static. With a compiler that does dead code elimination there will be no runtime test if he uses a "constant Boolean := ".