Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-22 Thread Hilaire
Le 22/04/2018 à 05:25, Gregg Williams a écrit : 2) In testAllIsogramSet, why do you need ‘self’? After all ‘isograms’ is a data structure, and its message is ‘do:’ You defined isograms as a method of the class. Therefore only this method returns the data structure you defined there. It is

[Pharo-users] Sorry - Please Stay!!!

2018-04-22 Thread sean
> Well, I guess I don't belong here anymore… Please don't let one personality define our community. I'm sure there are a lot of people, like me, who appreciate your perspective and efforts. Steph has said the same thing to me multiple times about talking vs. action and I've worked on hundreds

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-22 Thread Stephane Ducasse
tx guys for your help. cleaning the garden (was a junggle -well still). On Sun, Apr 22, 2018 at 12:18 PM, Hilaire wrote: > Le 22/04/2018 à 05:25, Gregg Williams a écrit : >> >> 2) In testAllIsogramSet, why do you need ‘self’? After all ‘isograms’ is a >> data structure, and its

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-22 Thread Sean P. DeNigris
Gregg Williams wrote > Hi—I’m a beginner in Pharo and am working my way through Pharo by Example > 5.0 (PbE) and Learning OOP and TDD with Pharo (LOTWP). Welcome! That's a great way to start :) Gregg Williams wrote > 1) These two methods are defined on the instance side (the Class button is >

Re: [Pharo-users] min:max:

2018-04-22 Thread Richard O'Keefe
Smalltalk/X has both #min:max: and #clampBetween:and: in its Magnitude.st. Dolphin 7 has neither. The definition of #clampBetween:and: in ST/X is clampBetween: min and: max max < self ifTrue: [^max]. self < min ifTrue: [^min]. ^self I've deleted the comment because it doesn't help

Re: [Pharo-users] min:max:

2018-04-22 Thread Richard O'Keefe
On 22 April 2018 at 05:59, PBKResearch wrote: > I can find no reference to #min:max: in Dolphin X6.1. > > Peter Kenny > > -Original Message- > From: Pharo-users On Behalf Of > Hilaire > Sent: 21 April 2018 17:36 > To:

Re: [Pharo-users] #(foo bar baz) min

2018-04-22 Thread Richard O'Keefe
I did say that the code I posted was a *GNU Smalltalk* extension. The version of GNU Smalltalk on my machine doesn't have #detectMin: or #detectMax:. As for test cases: self assert: #(3 1 4 2) min equals: 1. self assert: #(3 1 4 2) max equals: 4. self assert: #('C' 'A' 'D' 'B') min

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-22 Thread Martin McClure
On 04/21/2018 08:25 PM, Gregg Williams wrote: > Hi—I’m a beginner in Pharo Hi Gregg, welcome! > and am working my way through Pharo by Example 5.0 (PbE) and Learning OOP and > TDD with Pharo (LOTWP). > > I’m currently going through 7.4 Designing a test, in LOTWP, which covers > testing whether

Re: [Pharo-users] Where do we go now ?

2018-04-22 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- >What I find sad is that people spent hours talking instead of doing. >This is why Smalltalk is for them. >Personally I prefer Pharo. Well, I guess I don't belong here anymore since "Pharo is NOT Smalltalk" as you keep saying! And since I've been a Smalltalker for only

Re: [Pharo-users] Escaping from FileStream

2018-04-22 Thread Sven Van Caekenberghe
> On 22 Apr 2018, at 16:55, Hilaire wrote: > > For example when rewritting this methods, to read afterward PNG image I have > error: image format no recognized. > > getFile: aFilename > "^ FileStream readOnlyFileNamed: (self fullname: aFilename)" > ^ (self fullname:

Re: [Pharo-users] Sorry - Please Stay!!!

2018-04-22 Thread Stephane Ducasse
+1 On Sun, Apr 22, 2018 at 2:29 PM, wrote: >> Well, I guess I don't belong here anymore… > > Please don't let one personality define our community. I'm sure there are a > lot of people, like me, who appreciate your perspective and efforts. Steph > has said the same

Re: [Pharo-users] What next for Pharo vm?

2018-04-22 Thread Esteban A. Maringolo
On 22/04/2018 11:03, henry wrote: > I was thinking the vm is able to run more than one bytecode set. Why > couldn’t our vm support both Pharo and Java bytecodes? Smaltallk/X provides that Smalltalk/Java code duality. But I think if Pharo ever pursues that path the best thing would be to make it

Re: [Pharo-users] Sorry - Please Stay!!!

2018-04-22 Thread Stephane Ducasse
I think that I will simply stop to read this mailing-list too. Like that I will get focused and do not get hurt systematically by all the wish list and santa klaus dreams around. I'm a bit feedup about the stream of "YouShouldDoIt" and also the ton of certain mails. Stef On Sun, Apr 22, 2018 at

Re: [Pharo-users] Proper way to file in code

2018-04-22 Thread Sven Van Caekenberghe
> On 22 Apr 2018, at 16:46, Hilaire wrote: > > A migration guide will be more than welcome, because the API, and likely the > logic, is different. It is not hard at all, just start from FileSystem (i.e. FileReference, FileLocator, etc, ..) and open your streams from there

Re: [Pharo-users] question re. meaning of 'self' in a method used for testing

2018-04-22 Thread Stephane Ducasse
Indeed TestCase is a really a special class and it can be really looking strange at first. On Sun, Apr 22, 2018 at 2:20 PM, Sean P. DeNigris wrote: > Gregg Williams wrote >> Hi—I’m a beginner in Pharo and am working my way through Pharo by Example >> 5.0 (PbE) and Learning

[Pharo-users] SortedCollection>>reverse answers an inconsistent object in Pharo 6

2018-04-22 Thread Richard O'Keefe
Test case: #(1 2 4) asSortedCollection reverse add: 3; yourself The answer *should* be aSortedCollection(4 3 2 1) but *is* aSortedCollection(4 2 1 3). This works in Squeak. The problem is that SortedCollection does not define #reverse[d] but simply inherits it(them), and the inherited code

Re: [Pharo-users] Where do we go now ?

2018-04-22 Thread Offray Vladimir Luna Cárdenas
On 20/04/18 02:14, Stephane Ducasse wrote: >> On this matter, when I named my project, "Grafoscopio" I thought in >> something evocative and unique, because of the Spanish words "grafo" >> (graph) and grafía[1][2] (graphy, related with writing like in >> "ortografía" "orthography". After naming

Re: [Pharo-users] What next for Pharo vm?

2018-04-22 Thread Ronie Salgado
> > > I was thinking the vm is able to run more than one bytecode set. Why > couldn’t our vm support both Pharo and Java bytecodes? Perhaps a simpler way is to make a translator from Java bytecodes -> Pharo (Sista) bytecodes. I believe that ikvm did something similar for .NET. The hardest part of

[Pharo-users] What next for Pharo vm?

2018-04-22 Thread henry
I was thinking the vm is able to run more than one bytecode set. Why couldn’t our vm support both Pharo and Java bytecodes? Sent from ProtonMail Mobile

Re: [Pharo-users] What next for Pharo vm?

2018-04-22 Thread Ben Coman
On 22 April 2018 at 22:03, henry wrote: > I was thinking the vm is able to run more than one bytecode set. Why > couldn’t our vm support both Pharo and Java bytecodes? > > Some previous discussion here...

Re: [Pharo-users] Proper way to file in code

2018-04-22 Thread Hilaire
A migration guide will be more than welcome, because the API, and likely the logic, is different. Thanks Hilaire Le 21/04/2018 à 13:37, Sven Van Caekenberghe a écrit : Yes, relatively recent, weeks I guess, maybe a month, at least since half March. FileSystem (part of the image for ages),

[Pharo-users] Escaping from FileStream

2018-04-22 Thread Hilaire
For example when rewritting this methods, to read afterward PNG image I have error: image format no recognized. getFile: aFilename "    ^ FileStream readOnlyFileNamed: (self fullname: aFilename)"     ^ (self fullname: aFilename) asFileReference binaryReadStream Le 22/04/2018 à 16:46, Hilaire