Le 02/09/2013 12:02, Stéphane Ducasse a écrit :
ok I read the big thread and what would be a solution?
Updating OSProcess?
It's just that the code which does the platform selection is already
quite interesting due to platform differences, and I'm not sure how I
should update it for Pharo3. Suggestions?
OSProcess class>>osVersion
osVersion
"After Squeak version 3.6, #osVersion was moved to SmalltalkImage. Some
versions of Pharo move this to OSPlatform and issue deprecation warnings
about the other usages."
"self osVersion"
^ (((Smalltalk hasClassNamed: #OSPlatform)
and: [(Smalltalk at: #OSPlatform)
respondsTo: #osVersion])
ifTrue: [Smalltalk at: #OSPlatform]
ifFalse: [((Smalltalk classNamed: 'SmalltalkImage')
ifNil: [^ Smalltalk osVersion]) current])
osVersion
Thierry
On Sep 2, 2013, at 11:20 AM, Goubier Thierry <[email protected]> wrote:
Hi,
sometimes during the summer, a method used by OSProcess to determine the OS
Platform has been deprecated in Pharo 3.0. Is it possible to have a look into
updating OSProcess?
I'm still unable to use Pharo3.0 because of issue 11102, but I'd like to get
gitfiletree to work on it, and I think the main issue is OSProcess.
Thanks,
Thierry
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95
--
Thierry Goubier
CEA list
Laboratoire des Fondations des Systèmes Temps Réel Embarqués
91191 Gif sur Yvette Cedex
France
Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95