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!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!fdn.fr!freenix!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <46FD60C0.604@obry.net> Date: Fri, 28 Sep 2007 22:14:56 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Stefan Bellon Subject: Re: Pragma for conditional compilation? (Ada 2005 vs. 95) 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> <20070928220239.66807172@cube.tz.axivion.com> In-Reply-To: <20070928220239.66807172@cube.tz.axivion.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit NNTP-Posting-Date: 28 Sep 2007 22:14:59 CEST NNTP-Posting-Host: 82.120.149.112 X-Trace: 1191010499 news.orange.fr 25922 82.120.149.112:2596 X-Complaints-To: abuse@orange.fr Xref: g2news2.google.com comp.lang.ada:2202 Date: 2007-09-28T22:14:59+02:00 List-Id: Stefan, > 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)? In your case I think that both units are visible from GPS. Right ? In my case only one is visible, the one explicitly named. The other is not as double underscore is not a proper default naming convention. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595