[squeak-dev] Smalltalk>>#platformName

tim Rowledge tim at rowledge.org
Tue Oct 22 04:07:54 UTC 2019


Bravo for tackling this. It's certainly a bit of a mess. Not quite the sort of 'bit of a mess' that, say, Brexit is, but still.


> On 2019-10-21, at 6:10 PM, Chris Muller <ma.chris.m at gmail.com> wrote:
> 
> I was trying to find out all possible values of this message.  Browsing senders reveals a need to factor this out into a first-class SqueakPlatform -- we have way too many places which employ switch statements to determine what to do:
> 
>     Smalltalk platformName = "Mac OS" 
>        ifTrue: 
>           [ #('/System/Library/Fonts' '/Library/Fonts') do: [:fontDir | aBlock value: fontDir]. ]
> 
> Others check for "Win32", I'm not sure what #platformName is answering on 64-bit VM on Windows these days, could someone running Windows please tell me?
> 
> Still others check for "Risc OS" or "unix".  So, the full list I have so far is:
> 
>     unix
>     Win32
>     Mac OS
>     Risc OS
> 
> If you know of any others, please let me know.
> 
>  - Chris
> 


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Useful Latin Phrases:- Romani quidem artem amatoriam invenerunt. = You know, the Romans invented the art of love.




More information about the Squeak-dev mailing list