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,f890526de6a8a218 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <4352B2D5.3060701@obry.net> Date: Sun, 16 Oct 2005 22:06:45 +0200 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: fr, en MIME-Version: 1.0 Newsgroups: comp.lang.ada To: Larry Kilgallen Subject: Re: How to detect OS type and version? References: <20051013115001.60b6a695@pscube.informatik.uni-stuttgart.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 16 Oct 2005 22:06:47 CEST NNTP-Posting-Host: 82.124.251.14 X-Trace: 1129493207 news.wanadoo.fr 27416 82.124.251.14:1921 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:5730 Date: 2005-10-16T22:06:47+02:00 List-Id: Larry Kilgallen a �crit : > I got to work on some Ada code that used this "directory separator" > approach. Perhaps it is ok if your only choices are Windows or Unix, > but on VMS the characters ":[", "." and "]" are all used, except when > that list is ":<", "." and ">". Needless to say, the "directory separator" > approach was totally inadequate. Agreed, all this is a configuration management problem. It is far better in my view to have some kind of script that configure the software before compilation. This script will check the OS for example and use the proper bodies for some of the OS specific packages. This is exactly was the ./configure & make does on most software. I think it is wrong to try doing that with the language itself. As pointed out there it can work in some very simple case but it won't generally. 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