[Pharo-users] Books about Pharo

2024-01-24 Thread Richard O'Keefe
This is a new thread because it's not limited to any specific topic. If you have questions about Pharo, especially "how do I do in Pharo", you can always ask in this mailing list. You can, if you like playing Russian Roulette, ask a Large Language Model "AI". But there is an amazing resource

[Pharo-users] Re: How to run multiple images?

2024-01-24 Thread Davide Varvello via Pharo-users
+1 Cheers On Wednesday, January 24, 2024 at 10:17:31 AM GMT+1, Marcus Denker wrote: Yes, I would like to have drag-n-drop support, too. Or more specifically: double click of the imagein the Finder opens that image. (I am on the mac)

[Pharo-users] Re: Iterating over a Dictionary

2024-01-24 Thread Richard O'Keefe
This has not changed since Smalltalk-80. Running Smalltalk-80 and looking in the browser, I see Dictionary>> do: aBlock super do: [:assoc | aBlock value: assoc value]. 'super' here is Set, a Dictionary being implemented as a Set of Associations (which was always a bad idea). Dictionary>>do:

[Pharo-users] Re: Iterating over a Dictionary

2024-01-24 Thread Richard O'Keefe
Wrong. If you want to iterate of the associations of a dictionary, you need #associationsDo:. #do: passes the *values* to the block, *NOT* the associations. On Wed, 24 Jan 2024 at 05:28, Joachim Tuchel wrote: > > AI knows little about Smalltalk ;-) > > You can use do: with each Association as a

[Pharo-users] Re: Iterating over a Dictionary

2024-01-24 Thread Richard O'Keefe
There are many books about Smalltalk. Stephane Ducasse has made many of them available as FREE pdfs. Of course Pharo by Example would be a good start. The latest edition of Pharo by Example I have ready to hand is 8.0, 2020, where what you want is chapter 13, Collections. aCollection do:

[Pharo-users] Re: How to run multiple images?

2024-01-24 Thread Marcus Denker
Yes, I would like to have drag-n-drop support, too. Or more specifically: double click of the image in the Finder opens that image. (I am on the mac) I did use it a lot when it worked, but talking to people it seemed that it was not used a lot bu others. I think the reason was that was quite

[Pharo-users] Re: How to run multiple images?

2024-01-24 Thread Davide Varvello via Pharo-users
Thanks both Sergio and Noury, I'm not a big fan of the pharo launcher, but I'll give it a chance. Anyway I found that the problem to run multiple VMs is a constraint of macos, see  https://www.totalphase.com/support/articles/200349376-multiple-application-instances-on-mac-os-x/   so if you want