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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9023f3818c3c6a68 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-25 06:26:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!teaser.fr!freenix!deine.net!news.tiscali.fr!gaoland.net!alecto.grec.isp.9tel.net!setranews.setra.fr!not-for-mail From: SIMON Claude Newsgroups: comp.lang.ada Subject: Re: Detecting the OS type before clearing screen Date: Tue, 25 Mar 2003 15:26:36 +0100 Organization: S.E.T.R.A. Message-ID: <3E80671C.E404719E@equipement.gouv.fr> References: <87adfjvj5i.fsf@inf.enst.fr> NNTP-Posting-Host: calamar.setra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: setranews.setra.fr 1048602385 15532 161.48.101.33 (25 Mar 2003 14:26:25 GMT) X-Complaints-To: usenet@setranews.setra.fr NNTP-Posting-Date: 25 Mar 2003 14:26:25 GMT X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:35685 Date: 2003-03-25T14:26:25+00:00 List-Id: 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.........