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
> 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
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
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
>
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
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:
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
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
--- 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
> 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:
+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
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
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
> 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
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
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
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
>
>
> 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
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
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...
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),
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
22 matches
Mail list logo