Re: [Pharo-users] Omnibase

2014-06-14 Thread Ben Coman
Glenn Swanlund wrote: On Windows 7, I'm trying to install OmniBase in Pharo-30846. I get an error for ExternalWindowsOSProcess doesNotUnderstand defaultShellPath. Does anyone have a solution for this? Regards, Glenn At a guess you could start by defining... ExternalWindowsOSProcess

[Pharo-users] A question about sets

2014-06-14 Thread Fabian Boucsein
Hi there, i am new to Smalltalk and Pharo and today, while trying out some examples, i observed an somewhat strange behaviour. I used this snippet from the pharo.org website: | numbers | numbers := Set new. 10 timesRepeat: [ numbers add: 100 atRandom ]. numbers explore. Using Pharo 3.0 on my

Re: [Pharo-users] A question about sets

2014-06-14 Thread Luc Fabresse
Hi Fabian, Welcome on board ;-) Set: I represent a set of objects without duplicates. so if you have the same number multiple times, it cannot be added more than once in the Set. replace Set by Bag (I represent an unordered collection of possibly duplicate elements.) and the size will always

Re: [Pharo-users] A question about sets

2014-06-14 Thread Tim Hendriks
In sets there can be only Unique nummers. So random produced a few of the same numbers. They get excluded from the set. Tim Op 14 jun. 2014 om 11:48 heeft Fabian Boucsein fabian.boucs...@googlemail.com het volgende geschreven: Hi there, i am new to Smalltalk and Pharo and today, while

Re: [Pharo-users] A question about sets

2014-06-14 Thread Ben Coman
Fabian Boucsein wrote: Hi there, i am new to Smalltalk and Pharo and today, while trying out some examples, i observed an somewhat strange behaviour. I used this snippet from the pharo.org website: | numbers | numbers := Set new. 10 timesRepeat: [ numbers add:

Re: [Pharo-users] A question about sets

2014-06-14 Thread Hilaire Fernandes
Hi Fabien, As other already explained, you just discovered the marvelous Set collection. Hilaire Le 14/06/2014 11:48, Fabian Boucsein a écrit : i am new to Smalltalk and Pharo and today, while trying out some examples, i observed an somewhat strange behaviour. -- Dr. Geo http://drgeo.eu