From: Geert Bosch <geert@gonzo.sun3.iaf.nl>
Subject: Re: ifdef replacement for GNAT
Date: 1998/04/11
Date: 1998-04-11T00:00:00+00:00 [thread overview]
Message-ID: <6gmgmf$9di$1@gonzo.sun3.iaf.nl> (raw)
In-Reply-To: 86g1jm2gcf.fsf@zappa
Dirk Zoller <duz> 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
next prev parent reply other threads:[~1998-04-11 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <352287EE.1CFB@tolstoy.mdc.com>
1998-04-08 0:00 ` ifdef replacement for GNAT John T Vegezzi 312C M 237110
1998-04-09 0:00 ` Robert Dewar
1998-04-10 0:00 ` Dirk Zoller
1998-04-10 0:00 ` Robert Dewar
1998-04-11 0:00 ` nabbasi
1998-04-11 0:00 ` Larry Kilgallen
1998-04-13 0:00 ` Richard Kenner
1998-04-11 0:00 ` raw
1998-04-11 0:00 ` Larry Kilgallen
1998-04-13 0:00 ` Michael F Brenner
1998-04-13 0:00 ` Larry Kilgallen
1998-04-15 0:00 ` Ada Programming Environment [was ifdef replacement for GNAT] Nick Roberts
1998-04-14 0:00 ` ifdef replacement for GNAT Jean-Pierre Rosen
1998-04-11 0:00 ` Geert Bosch [this message]
1998-04-12 0:00 ` Haug Buerger
1998-04-13 0:00 ` Aaro Koskinen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox