Re: [Pharo-dev] pharo compiler on scientific notation

2019-12-19 Thread Sven Van Caekenberghe
Because your exponent is not between: Float emin and: Float emax ? In other words it is too large and not representable in a https://en.wikipedia.org/wiki/IEEE_754 double. > On 19 Dec 2019, at 16:02, Nicolas Anquetil wrote: > > > In pharo 7, inspecting: 1.0e > > gives: "Reading a number

[Pharo-dev] pharo compiler on scientific notation

2019-12-19 Thread Nicolas Anquetil
In pharo 7, inspecting: 1.0e gives: "Reading a number failed -> " it works for: 1.0e333 (only three "3") is that the expected behaviour ? nicolas -- Nicolas Anquetil RMod team -- Inria Lille

[Pharo-dev] [Pharo 8.0] Build #1083: Enhance monticello snapshot class lookup

2019-12-19 Thread ci-pharo-ci-jenkins2
There is a new Pharo build available! The status of the build #1083 was: SUCCESS. The Pull Request #5395 was integrated: "Enhance monticello snapshot class lookup" Pull request url: https://github.com/pharo-project/pharo/pull/5395 Issue Url:

Re: [Pharo-dev] Interesting bug or feature in exception processing logic

2019-12-19 Thread Denis Kudriashov
Hi Alistair чт, 19 дек. 2019 г. в 07:19, Alistair Grant : > On Wed, 18 Dec 2019 at 21:45, Denis Kudriashov > wrote: > > > > Following script demonstrates the difference in the error processing > logic when there is an outer handler: > > > > [ > > > > [MyTestError signal ] on: UnhandledError do:

Re: [Pharo-dev] pharo compiler on scientific notation

2019-12-19 Thread tbrunz
I would expect that both would result in +Inf. A IEEE-754 'double' overflows around 2e308. Surely both cases should behave the same way..?? -t -- Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

Re: [Pharo-dev] Interesting bug or feature in exception processing logic

2019-12-19 Thread Denis Kudriashov
The solution to problem is to resignal UnhandledError instead of simple signalling. Resignal uses original signalContext as a starting point for handlers lookup: UnhandledError>>signalForException: anError ^anError resignalAs: (self new exception: anError; yourself) I played with some of

Re: [Pharo-dev] Interesting bug or feature in exception processing logic

2019-12-19 Thread Denis Kudriashov
чт, 19 дек. 2019 г. в 21:43, Denis Kudriashov : > I checked Squeak. All my examples work consistently there: UnhandledError > handler is always triggered. > Even more: signalling new error from the handler block passes it from the > original signallerContext: > > [ >> >> [ 1/0 ] on: MyTestError

[Pharo-dev] Why UnhandledError is not the only way to open debugger?

2019-12-19 Thread Denis Kudriashov
Or in other words why Halt and Warning open debugger directly instead of using UnhandledError signalling? In Squeak it's all going though UnhandledError.

Re: [Pharo-dev] Why UnhandledError is not the only way to open debugger?

2019-12-19 Thread Steven Costiou
Le 2019-12-19 19:54, Denis Kudriashov a écrit : > Or in other words why Halt and Warning open debugger directly instead of > using UnhandledError signalling? > > In Squeak it's all going though UnhandledError. Hi Denis, Thomas Dupriez made a nice documentation from existing materials about

Re: [Pharo-dev] Interesting bug or feature in exception processing logic

2019-12-19 Thread Denis Kudriashov
I checked Squeak. All my examples work consistently there: UnhandledError handler is always triggered. Even more: signalling new error from the handler block passes it from the original signallerContext: [ > > [ 1/0 ] on: MyTestError do: [ :e | self halt ] > > ] on: ZeroDivide do: [ :z |

Re: [Pharo-dev] Interesting bug or feature in exception processing logic

2019-12-19 Thread Denis Kudriashov
I will collect here other issues if I will find them. Looking in Context methods which I mentioned here I found that debugger is broken for stepping through warnings. And it means that debugging deprecated methods can hang debugger. I will create another thread on this issue because it has more

Re: [Pharo-dev] Interesting bug or feature in exception processing logic

2019-12-19 Thread Alistair Grant
Hi Denis, Thanks very much for the clarification in your previous email (which I haven't quoted here), I did indeed misunderstand the point you were making. On Thu, 19 Dec 2019 at 19:40, Denis Kudriashov wrote: > > The solution to problem is to resignal UnhandledError instead of simple >

[Pharo-dev] [Pharo 8.0] Build #1082: CleanupASTCache

2019-12-19 Thread ci-pharo-ci-jenkins2
There is a new Pharo build available! The status of the build #1082 was: SUCCESS. The Pull Request #5393 was integrated: "CleanupASTCache" Pull request url: https://github.com/pharo-project/pharo/pull/5393 Issue Url: https://github.com/pharo-project/pharo/issues/CleanupASTCache Build Url:

Re: [Pharo-dev] Interesting bug or feature in exception processing logic

2019-12-19 Thread Denis Kudriashov
чт, 19 дек. 2019 г. в 00:42, Denis Kudriashov : > I think this problem could lead to debugger issues with stepOver and > stepThrough. For example: > > Context>>#stepToHome: > ... > context := aContext insertSender: (Context > contextOn: UnhandledError do: [:ex | ... ]) > > It

Re: [Pharo-dev] Interesting bug or feature in exception processing logic

2019-12-19 Thread Denis Kudriashov
Hi Alistair. чт, 19 дек. 2019 г. в 07:10, Alistair Grant : > I think the difference here is that in the playground 'self' is nil, > while in the browser 'self' is the class being inspected. > UndefinedObject>>handleSignal: tells the exception to execute its > #defaultAction, which is to signal

[Pharo-dev] [ANN] TechTalk TODAY “Working with Spec2 and GTK" BUT TIME CHANGE TO 16h France

2019-12-19 Thread Esteban Lorenzano
Hi, I will give a techtalk today around the work with Spec2 and GTK. But because of personal reasons, I cannot give the talk 17-18h EU, instead, it will be one our earlier. So, this is the appointment: Pharo TechTalk 19 Dec 2019 4:00 PM - 5:00 PM (UTC+01:00) A regular chat about Pharo.