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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6426898aedaa5880 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!62.111.101.3.MISMATCH!news.germany.com!news.belwue.de!news.uni-stuttgart.de!not-for-mail From: Stefan Bellon Newsgroups: comp.lang.ada Subject: Re: Pragma for conditional compilation? (Ada 2005 vs. 95) Date: Fri, 28 Sep 2007 22:02:39 +0200 Organization: Comp.Center (RUS), U of Stuttgart, FRG Message-ID: <20070928220239.66807172@cube.tz.axivion.com> References: <1190879769.361848.188220@22g2000hsm.googlegroups.com> <1190929570.915553.284000@19g2000hsx.googlegroups.com> <4p1jdf.ssa.ln@hunter.axlog.fr> <1190993095.488093.244130@r29g2000hsg.googlegroups.com> <1v8jdf.rc4.ln@hunter.axlog.fr> <1191002053.9585.66.camel@kartoffel> <46FD45BA.5030205@obry.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: infosun2.rus.uni-stuttgart.de 1191009713 11701 129.69.226.24 (28 Sep 2007 20:01:53 GMT) X-Complaints-To: news@news.uni-stuttgart.de NNTP-Posting-Date: Fri, 28 Sep 2007 20:01:53 +0000 (UTC) X-Newsreader: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; i486-pc-linux-gnu) X-URL: http://www.axivion.com/ Xref: g2news2.google.com comp.lang.ada:2199 Date: 2007-09-28T22:02:39+02:00 List-Id: On Fri, 28 Sep, Pascal Obry wrote: > case OS is > when "Windows_NT" => > for Implementation ("OS_Services") > use "os_services__win32.adb"; > when "UNIX" => > for Implementation ("OS_Services") > use "os_services__linux.adb"; > end case; Interesting. What is the difference to the following (what we have been using for some time)? package Naming is case OS is when "UNIX" => for Body ("Plugins.Internal_Load") use "plugins-internal_load-unix.adb"; when "Windows_NT" => for Body ("Plugins.Internal_Load") use "plugins-internal_load-windows.adb"; end case; end Naming; The two Internal_Load being "separate" procedures for package body Plugins. Are the pros and cons versus the Implementation attribute above (which I didn't know about until now)? -- Stefan Bellon