On Jan 22, 2013, at 5:27 PM, H. Hirzel <hannes.hir...@gmail.com> wrote:
> Dave > > I wonder why you can't check for > > Smalltalk at: #OSPlatform > > and if that exists go for > OSPlatform osVersion > We deprecated that… but I can un-deprecate. > Neither Squeak nor Cuis do have an OSPlatform class. > > Then you go for > Smalltalk os version > This works in Pharo 2.0… > Am I missing something here? > > --Hannes > > On 1/21/13, David T. Lewis <le...@mail.msen.com> wrote: >> Why is OSPlatform class>>osVersion deprecated but OSPlatform >> class>>platformName >> is not? >> >> My suggestion would be to comment #osVersion as being a synonym for >> #version, >> but do not deprecate it. That would enable use of "Smalltalk os version", >> and >> it would also support "OSPlatform osVersion", both of which make logical >> sense. >> It would also maintain support for external packages that rely on >> #osVersion >> to figure out platform differences. >> >> The reason that I am asking is that I am trying to find a way to make >> OSProcess class>>osVersion work on Pharo 2.0, Pharo1.x, and the various >> versions of Squeak and Cuis. I quite honestly cannot figure out any way to >> add Pharo 2.0 without breaking one more more of the other supported images. >> If OSPlatform class>>osVersion did not raise a deprecation warning, then >> I could make it work. >> >> Thanks, >> Dave >> >> >> >