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 From: "Martin Dowie" Newsgroups: comp.lang.ada References: <20051013115001.60b6a695@pscube.informatik.uni-stuttgart.de> Subject: Re: How to detect OS type and version? Date: Thu, 13 Oct 2005 11:39:32 +0100 Organization: BAE SYSTEMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Message-ID: <434e3775_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Date: 13 Oct 2005 10:40:39 GMT NNTP-Posting-Host: 20.133.0.1 X-Trace: 1129200039 news.gradwell.net 38040 dnews/20.133.0.1 X-Complaints-To: news-abuse@gradwell.net Path: g2news1.google.com!news3.google.com!news.glorb.com!news.amigo.co.uk!news-peer-lilac.gradwell.net!not-for-mail Xref: g2news1.google.com comp.lang.ada:5592 Date: 2005-10-13T10:40:39+00:00 List-Id: Stefan Bellon wrote: > This approach has one problem: Those environment variables can be set > by the user, so that the user can fake the setting to select wrong OS > dependent code. Absolutely! Though I'm not sure exactly that would acheive as presumably they would have to fake everything else that followed! :-) I think this is what "System.Name" was probably orginally intended to provide but it never quite worked out that way...