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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d694b5818a5102b1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-15 04:59:56 PST Path: bga.com!news.sprintlink.net!news.clark.net!clark.net!hholm From: hholm@clark.net (Howard Holm) Newsgroups: comp.lang.ada Subject: Naive question about system dependencies Date: Thu, 15 Sep 1994 06:32:16 GMT Organization: Clark Internet Services, Inc. Message-ID: NNTP-Posting-Host: hholm_ppp.clark.net Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Keywords: Ada C System_Name X-Newsreader: Trumpet for Windows [Version 1.0 Rev A] Date: 1994-09-15T06:32:16+00:00 List-Id: I have some experience using Ada in a classroom setting, but unfortunately little experience using it in any real-world settings. I was considering how I would go about writing a program that was intended to be used in several different operating system environments (e.g. OS/2 and UNIX). If I were using C, I would either use compiler generated macros, if they existed, or create some macros in the makefile that could be used to determine which system was the target (i.e. #ifdef OS2). The most likely equivalent seemed to me to be the System_Name constant in the System package. However, when I checked, the Gnat compiler simply uses "GNAT" for that definition. So, my question is how do you go about accounting for differences in GUI's and the like? Do you have a build directory that you copy implementation specific low-level packages into and out of for each build, or do you define a search path and have a collection of implementation specific directories and an independent directory? Or, did I overlook some other language featue to address this question? -------------------- Howard Holm hholm@clark.net