[Pharo-project] is Smalltalk metacelloPlatformAttributes incorrect in 2.0
Smalltalk metacelloPlatformAttributes #(#squeakCommon #pharo #'pharo2.x' #'pharo2.0.x') I have the impression that we should better have #(#squeakCommon #pharo #'pharo2.0' #'pharo2.0.x') what do you think? Stef
I think that: #(#squeakCommon #pharo #'pharo2.x' #'pharo2.0.x') is the standard pattern. #'pharo2.x' implies that the code is common across the whole pharo2 family. #'pharo2.0.x' covers the pharo2.0 family. If you want to explicitly exclude pharo2.1, pharo2.2, etc. and beyond then the following would suffice: #(#squeakCommon #pharo #'pharo2.0.x') but I think it is better to define the full range of versions for each platform rather than exclude some. Then if a developer finds that they've got code that runs in 2.0 and 2.1 they can have an attribute available to cover their needs. The #'pharo2.x' is looking forward towards future releases... Dale ----- Original Message ----- | From: "stephane ducasse" <stephane.ducasse@free.fr> | To: "Pharo Development" <Pharo-project@lists.gforge.inria.fr> | Sent: Friday, October 26, 2012 1:20:24 PM | Subject: [Pharo-project] is Smalltalk metacelloPlatformAttributes incorrect in 2.0 | | Smalltalk metacelloPlatformAttributes #(#squeakCommon #pharo | #'pharo2.x' #'pharo2.0.x') | | I have the impression that we should better have | | #(#squeakCommon #pharo #'pharo2.0' #'pharo2.0.x') | | what do you think? | | Stef |
On Oct 27, 2012, at 5:20 AM, Dale Henrichs wrote:
I think that:
#(#squeakCommon #pharo #'pharo2.x' #'pharo2.0.x')
is the standard pattern. #'pharo2.x' implies that the code is common across the whole pharo2 family. #'pharo2.0.x' covers the pharo2.0 family.
Ok I will update then the configuration I was writing because I used 2.0.x
If you want to explicitly exclude pharo2.1, pharo2.2, etc. and beyond then the following would suffice:
#(#squeakCommon #pharo #'pharo2.0.x')
but I think it is better to define the full range of versions for each platform rather than exclude some. Then if a developer finds that they've got code that runs in 2.0 and 2.1 they can have an attribute available to cover their needs.
The #'pharo2.x' is looking forward towards future releases...
Dale
----- Original Message ----- | From: "stephane ducasse" <stephane.ducasse@free.fr> | To: "Pharo Development" <Pharo-project@lists.gforge.inria.fr> | Sent: Friday, October 26, 2012 1:20:24 PM | Subject: [Pharo-project] is Smalltalk metacelloPlatformAttributes incorrect in 2.0 | | Smalltalk metacelloPlatformAttributes #(#squeakCommon #pharo | #'pharo2.x' #'pharo2.0.x') | | I have the impression that we should better have | | #(#squeakCommon #pharo #'pharo2.0' #'pharo2.0.x') | | what do you think? | | Stef |
participants (3)
-
Dale Henrichs -
stephane ducasse -
Stéphane Ducasse