On Aug 4, 2010, at 12:26 AM, John M McIntosh wrote:

> Well actually 
> Smalltalk isMacOS9
> can just  answer false since a Pharo based image will never run on macintosh 
> OS 9 (aka pre os-x)

thanks john.


> However which system attribute are you using? 

Smalltalk getSystemAttribute: 1001
        -> Mac OS

osVersion
        "Return the version number string of the platform we're running on"
        "OSPlatform osVersion"

        ^(Smalltalk getSystemAttribute: 1002) asString


> http://isqueak.org/getAttributeIntoLength
> what you think might be safe might surprise/bite you.... 

:)

vmVersion
        "Return the version number string of the Virtual machine built"
        "OSPlatform vmVersion"

        ^Smalltalk getSystemAttribute: 1004 

'Squeak3.8.1 of ''28 Aug 2006'' [latest update: #6747] Squeak VM 4.2.4b1'

You are still using a so old image to build the VMs?

Stef
> 
> 
> On 2010-08-03, at 1:38 PM, Stéphane Ducasse wrote:
> 
>> Hi guys
>> 
>> I'm working on merging the changes 1298 about the guess of default end of 
>> line.
>> And I would like to know on mac os x (compared to Os9) what is the default 
>> character of end of line. I thought it was CR
>> 
>> since the previous code was 
>> 
>> ((OSPlatform osVersion) beginsWith: 'darwin')
>>                              ifTrue: [^ self defaultToCR]
>>                              ifFalse: [^ self defaultToLF]]
>> 
>> 
>> but carlo wrote
>> 
>>      Smalltalk isMacOS9 ifTrue: [^ self defaultToCR] ifFalse: [^ self 
>> defaultToLF]].
>> 
>> and I have some doubts because 'darwin' should be mac os x
>> 
>> Stef
>> _______________________________________________
>> Pharo-project mailing list
>> [email protected]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> 
> --
> ===========================================================================
> John M. McIntosh <[email protected]>   Twitter:  squeaker68882
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> ===========================================================================
> 
> 
> 
> 
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to