Re: [Pharo-users] Rewrite Tool Set in Spec2

2020-09-02 Thread Stéphane Ducasse
I loaded latest version in P9 and I cannot open it from the tools menu searchForEditor := self newCode text: DefaultRule new searchFor; yourself. Apparently searchFor is not understood S > On 3 Sep 2020, at 00:49, Juan Pablo

Re: [Pharo-users] Rewrite Tool Set in Spec2

2020-09-02 Thread Stéphane Ducasse
Thanks and sorry because I’m flooded by work. I will check it this evening. S > On 3 Sep 2020, at 00:49, Juan Pablo Sandoval Alcocer > wrote: > > Greetings to all, > > Sebastian is developing a tool to build and test Rewrite Rules. It is built > on the basis of MatchTool and RewriteTool. I

[Pharo-users] Rewrite Tool Set in Spec2

2020-09-02 Thread Juan Pablo Sandoval Alcocer
Greetings to all, Sebastian is developing a tool to build and test Rewrite Rules. It is built on the basis of MatchTool and RewriteTool. I have ported, refactored, and enhanced these tools to be compatible with Pharo 9 and with Spec2. So, in this tool you have these tools ported and ready to be us

Re: [Pharo-users] ZnClient - how suppress popup notifications

2020-09-02 Thread Sven Van Caekenberghe
In any case, [ ZnClient new get: 'http://host-does-not-exist-123123.com' ] on: NetworkError do: [ #myFailure ] returns #myFailure and does not invoke the #defaultAction, nor any UI. Like I said, you can just catch the exception you want. > On 2 Sep 2020, at 22:15, Jimmie Houchin wrote: > >

Re: [Pharo-users] Getting rid of .sources file for deployment

2020-09-02 Thread jan.struz
Hi Esteban, you can try this for all methods requiring source code, before removing .sources file: someCompiledMethod embeddSourceInTrailer. This works since Pharo 3.0 or so... Jan - Save The World! -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] ZnClient - how suppress popup notifications

2020-09-02 Thread Jimmie Houchin
On 9/2/20 2:36 PM, Sven Van Caekenberghe wrote: Hi Jimmie, On 2 Sep 2020, at 20:29, Jimmie Houchin wrote: Before I get to my problem. I want to thank Sven for the huge effort that had to be made to provide all of the Zinc networking tools. Thank you. Thanks, you're welcome. I am using

Re: [Pharo-users] Scaled decimals comparisons

2020-09-02 Thread Esteban Maringolo
Hi Richard, +1 to what was asked by Stef. How hard is it to bring your knowledge, and existing implementation, into a "proper" implementation of ScaledDecimal (or FixedPoint) in Pharo? Regards! Esteban A. Maringolo On Wed, Sep 2, 2020 at 12:12 PM Stéphane Ducasse wrote: > > Richard > > we are

Re: [Pharo-users] ZnClient - how suppress popup notifications

2020-09-02 Thread Sven Van Caekenberghe
Hi Jimmie, > On 2 Sep 2020, at 20:29, Jimmie Houchin wrote: > > > Before I get to my problem. I want to thank Sven for the huge effort that had > to be made to provide all of the Zinc networking tools. Thank you. Thanks, you're welcome. > I am using ZnClient in an app. It is working fine. Bu

[Pharo-users] ZnClient - how suppress popup notifications

2020-09-02 Thread Jimmie Houchin
Before I get to my problem. I want to thank Sven for the huge effort that had to be made to provide all of the Zinc networking tools. Thank you. I am using ZnClient in an app. It is working fine. But I do not want any UI Notifications. This will eventually be headless on a server. But right

Re: [Pharo-users] Scaled decimals comparisons

2020-09-02 Thread Stéphane Ducasse
Richard we are really interested in improving Pharo on that aspect. Now I’m really not good with such domain. Can you send us some code and tests? S. > On 2 Sep 2020, at 12:31, Richard O'Keefe wrote: > > The behaviour of ScaledDecimal in Squeak and Pharo is > - different from what the ANSI

[Pharo-users] Epicea and multiple images - mixed changes

2020-09-02 Thread Davide Varvello via Pharo-users
--- Begin Message --- Hi Guys, Did you notice that if there are 2 or more images in the same directory, Epicea shows the changes of all of them? I think it shouldn't. Cheers Davide -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html --- End Message ---

Re: [Pharo-users] Can it do this way ?

2020-09-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Op 2-9-2020 om 12:38 schreef Richard O'Keefe: There is simply no point in "taking the first nine numbers out". And there shouldn't BE a test for the string being empty, anywhere.

Re: [Pharo-users] Can it do this way ?

2020-09-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Correct. This is a exercism task. and yes, there are no variables given but that does not in my oponion means that I cannot add a instance or a class variable I myself was thinking about adding two instance variables named digits which hold the first 9 characters and a va

Re: [Pharo-users] Can it do this way ?

2020-09-02 Thread Richard O'Keefe
There is simply no point in "taking the first nine numbers out". And there shouldn't BE a test for the string being empty, anywhere. '' '-' '---' and so on should all be handled the same way. Oh well, what stops you doing digits := aString select: [:each | each ~= $-]. digits size = 10 ifFa

Re: [Pharo-users] Scaled decimals comparisons

2020-09-02 Thread Richard O'Keefe
The behaviour of ScaledDecimal in Squeak and Pharo is - different from what the ANSI Smalltalk standard says - different from what other Smalltalks do (not that they agree) - completely different from decimal arithmetic in COBOL, PL/I, or SQL - seriously confusing. What you EXPECT is an exact rati

Re: [Pharo-users] Can it do this way ?

2020-09-02 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Yep, I know that isValidIsbn is the method that must output if a isbn is valid or not. What I want to do is take the first 9 characters out so I can convert them to a array of numbers where I can do the calculation on. And take out the last char so I can seperate test if t

Re: [Pharo-users] Can it do this way ?

2020-09-02 Thread Richard O'Keefe
Briefly, you cannot and (for a different reason) you should not. The IsbnVerifierTest class defines the API; the method must be isValidIsbn: aString and it MUST be on the instance side. The reason why you shouldn't is that an empty string should NOT be a special case. This is a problem where the d

Re: [Pharo-users] Can it do this way ?

2020-09-02 Thread Richard O'Keefe
Everything Joachim Tuchel wrote about this is fine EXCEPT that this is an Exercism task, where Roelof has to implement an API that he is given and is not at liberty to do it right. Thanks to the way that IsbnVerifierTest is structured, - the IsbnVerifier class has NO use for ANY variables of ANY