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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a9f89faeb8f41ad0 X-Google-Attributes: gid103376,public From: Geert Bosch Subject: Re: ifdef replacement for GNAT Date: 1998/04/11 Message-ID: <6gmgmf$9di$1@gonzo.sun3.iaf.nl>#1/1 X-Deja-AN: 343048319 References: <352287EE.1CFB@tolstoy.mdc.com> <352B8208.41C6@tolstoy.mdc.com> <86g1jm2gcf.fsf@zappa> Organization: La Calandre Infortunee Newsgroups: comp.lang.ada Date: 1998-04-11T00:00:00+00:00 List-Id: Dirk Zoller wrote: ``How is an Ada project (GNAT) being kept portable among various Unices and say, Win32? Assume there is something special to be done in all environments. Without using a nonstandard tool like gnatprep that is.'' Very easy: put system dependent stuff in a package with a well defined interface (spec) and use different bodies for different systems. You'd like to make this system dependent part as small as possible, but this is a good design principle anyway. When you want to add a new system you just write a new implementation for the spec for system dependent stuff and that's it. No more hunting #ifdefs in dozens of files and breaking other code in the process... Regards, Geert