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!news1.google.com!news3.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps84.POSTED!023a3d7c!not-for-mail Sender: blaak@METROID Newsgroups: comp.lang.ada Subject: Re: How to detect OS type and version? References: <20051013115001.60b6a695@pscube.informatik.uni-stuttgart.de> From: Ray Blaak Organization: The Transcend Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 17 Oct 2005 17:19:36 GMT NNTP-Posting-Host: 66.119.186.132 X-Trace: edtnps84 1129569576 66.119.186.132 (Mon, 17 Oct 2005 11:19:36 MDT) NNTP-Posting-Date: Mon, 17 Oct 2005 11:19:36 MDT Xref: g2news1.google.com comp.lang.ada:5750 Date: 2005-10-17T17:19:36+00:00 List-Id: Robert A Duff writes: > Ray Blaak writes: > > That is, the enumeration should not be built into the language, since > > it is not at all a stable enough set of values for the long > > term. Imagine being able to code to an updated set only every 10 > > years, which seems to be Ada's upgrade cycle. > > I agree that an enum type would not work here, as a language feature. > But neither would a string or anything else -- there is no solution > at the language level. This issue has to be solved by each project, > I think. I don't see the problem with a string value. I use: System.getProperty("os.name") in Java all the time, and it works well in practice, at least to distinguish between the OS's that I care about. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, rAYblaaK@STRIPCAPStelus.net The Rhythm has my soul.