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.7 required=5.0 tests=BAYES_00,INVALID_DATE, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d694b5818a5102b1 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-21 14:18:14 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!solaris.cc.vt.edu!swiss.ans.net!newsgate.watson.ibm.com!watnews.watson.ibm.com!ncohen From: ncohen@watson.ibm.com (Norman H. Cohen) Newsgroups: comp.lang.ada Subject: Re: Naive question about system dependencies Date: 19 Sep 1994 15:00:55 GMT Organization: IBM T.J. Watson Research Center Distribution: world Message-ID: <35k937$1fqc@watnews1.watson.ibm.com> References: <35f559$mad@info.epfl.ch> <35jupm$dkq@theopolis.orl.mmc.com> Reply-To: ncohen@watson.ibm.com NNTP-Posting-Host: rios8.watson.ibm.com Date: 1994-09-19T15:00:55+00:00 List-Id: In article <35jupm$dkq@theopolis.orl.mmc.com>, dennison@romulus23.DAB.GE.COM (Ted Dennison) writes: |> In article <35f559$mad@info.epfl.ch>, weber@lglsun.epfl.ch (Mats Weber) writes: |> |> In article |> |> Using a good file naming convention helps a lot in managing the |> |> different versions. We use something like this: |> |> |> |> sql_interface.ads (common package spec) |> |> sql_interface-oracle-vms.adb (body for Oracle under VMS) |> |> sql_interface-sybase-unix.adb (body for Sybase under UNIX) |> |> |> |> Despite the amount of code duplication, I prefer this to a preprocessor |> |> approach. |> |> This won't work under GNAT. GNAT doesn't allow you to use "a good file naming |> convention", you have to use theirs. T.E.D. is apparently criticizing something about which he knows nothing. The "good file naming convention" Mats proposes is precisely the GNAT convention for child units named SQL_Interface.Oracle.VMS and SQL_Interface.Sybase.Unix. -- Norman H. Cohen ncohen@watson.ibm.com