comp.lang.ada
 help / color / mirror / Atom feed
From: SIMON Claude <claude.simon@equipement.gouv.fr>
Subject: Re: Detecting the OS type before clearing screen
Date: Tue, 25 Mar 2003 15:26:36 +0100
Date: 2003-03-25T14:26:25+00:00	[thread overview]
Message-ID: <3E80671C.E404719E@equipement.gouv.fr> (raw)
In-Reply-To: slrnb80jub.nt.lutz@taranis.iks-jena.de

Lutz Donnerhacke wrote:
> 
> * sk wrote:
> > I would gladly welcome any experience of a "clean Ada" way
> > of setting this up if you would care to share.
> 
> with Config.OS1; -- Change here
> 
> package Config is
>    package OS renames Config.OS1; -- and here
>    type os-depended-type renames OS.os-depended-type;
>    function os-depended-function renames OS.os-depended-function;
>    ...
> end Config;
> 
> private package Config.OS1 is
>   ...
> end Config.OS1;
> 
> private package Config.OS2 is
>   ...
> end Config.OS2;


why not :

--  file os1.ads
package OS1 is
   ...
end OS1;

-- file os2.ads
package OS2 is
   ...
end OS2;


-- file os.ads
with OS2; -- select the OS --
package OS renames OS2;


-- others files 

with OS;
package is .....


..........renaming the package renames all specifications in one
instruction.........



  reply	other threads:[~2003-03-25 14:26 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 23:55 Detecting the OS type before clearing screen Redy RAMAMONJISOA
2003-03-25  0:58 ` sk
2003-03-25 10:24   ` Samuel Tardieu
2003-03-25 11:19     ` sk
2003-03-25 12:47       ` Lutz Donnerhacke
2003-03-25 14:26         ` SIMON Claude [this message]
2003-03-25 14:33           ` Lutz Donnerhacke
2003-03-25 21:48             ` Wojtek Narczynski
2003-03-25 12:25   ` Wojtek Narczynski
2003-03-25 17:27 ` Warren W. Gay VE3WWG
2003-03-25 20:54 ` sk
2003-03-26 18:43   ` Randy Brukardt
2003-03-26 20:36   ` Simon Wright
replies disabled

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