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-7-bit Path: g2news1.google.com!news4.google.com!newsfeed2.dallas1.level3.net!newsreader1.level3.com!newsfeed1.dallas1.level3.net!news.level3.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: How to detect OS type and version? Date: 16 Oct 2005 09:16:17 -0500 Organization: LJK Software Message-ID: References: <20051013115001.60b6a695@pscube.informatik.uni-stuttgart.de> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1129472174 15248 192.135.80.34 (16 Oct 2005 14:16:14 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Sun, 16 Oct 2005 14:16:14 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:5724 Date: 2005-10-16T09:16:17-05:00 List-Id: In article , Ray Blaak writes: > Robert A Duff writes: >> Ray Blaak writes: >> > Simply adding a new OS to some central definition should not impact all >> > existing code. In practical terms people should have had an "unknown OS" >> > handler anyway. >> >> What is the directory separator character on "unknown OS"? ;-) > > I don't know, of course. The point is to have a plan for it. In the worst > case you exit with the appropriate error message "unknown OS!". In practice > you assume "Unix". 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.