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-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!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!uunet!dca.uu.net!ash.uu.net!spool.news.uu.net!not-for-mail Date: Tue, 16 Nov 2004 14:13:02 -0500 From: Hyman Rosen User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Conditional compilation in Ada? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1100632383.66582@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1100632383 4342 204.253.250.10 Xref: g2news1.google.com comp.lang.ada:6226 Date: 2004-11-16T14:13:02-05:00 List-Id: Jeffrey Carter wrote: > Yes. Don't use preprocessing. Yes, especially in the way he's proposing. Leaving little #ifdefs everywhere is bad practice even in languages which allow it. > It sounds as if you have a good use for a variant record: The OP is running two separate programs. There should be a better solution than forcing him to make runtime tests for something which is static. A description of the data structure and its varieties is needed before we can offer really sage advice.