comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
To: Stefan Bellon <sbellon@sbellon.de>
Subject: Re: Pragma for conditional compilation? (Ada 2005 vs. 95)
Date: Fri, 28 Sep 2007 22:14:56 +0200
Date: 2007-09-28T22:14:59+02:00	[thread overview]
Message-ID: <46FD60C0.604@obry.net> (raw)
In-Reply-To: <20070928220239.66807172@cube.tz.axivion.com>

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



  reply	other threads:[~2007-09-28 20:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-27  7:56 Pragma for conditional compilation? (Ada 2005 vs. 95) Jerry
2007-09-27  9:31 ` Georg Bauhaus
2007-09-27 16:59   ` Pascal Obry
2007-09-27 21:56     ` Jerry
2007-09-27  9:52 ` Stephen Leake
2007-09-27  9:58 ` Brian Drummond
2007-09-27 15:26 ` anon
2007-09-27 21:46   ` Jerry
2007-09-28  4:55     ` Jeffrey R. Carter
2007-09-28 12:15       ` Jeffrey Creem
2007-09-28 14:06         ` Jean-Pierre Rosen
2007-09-28 15:24           ` Ludovic Brenta
2007-09-28 16:08             ` Jean-Pierre Rosen
2007-09-28 17:54               ` Georg Bauhaus
2007-09-28 18:19                 ` Pascal Obry
2007-09-28 20:02                   ` Stefan Bellon
2007-09-28 20:14                     ` Pascal Obry [this message]
2007-09-28 20:26                       ` Stefan Bellon
2007-09-29 10:24                     ` Stephen Leake
2007-09-28 20:04                   ` Simon Wright
2007-09-28 20:11                     ` Pascal Obry
2007-09-29 10:29                     ` Stephen Leake
2007-09-29 10:18               ` Stephen Leake
2007-09-28 18:07     ` anon
2007-09-29 22:13 ` Jerry
2007-09-30 10:54   ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox