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 pays
>
>
> 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
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
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 r
> 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: aFilename) asFileR
> 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 and you are good. I
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
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 OOP and TDD with Pharo
+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 thing to me multiple times a
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 a
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), F
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...
http://forum.world.st/java-interpreter-compiler-hosted-with-Spur-td4739237.html
cheers -ben
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
> 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 o
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
> *n
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 message is ‘do:’
>
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 not
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 eq
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 w
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: pharo-users@lists.pharo.org
> Subject: Re: [Pharo-users] min:max:
>
>
20 matches
Mail list logo