Why this: [ 1/0 ] on: ZeroDivide do: [:ex | ex resume: 1 ]. returns 1, but this: [ 1.0/0 ] on: ZeroDivide do: [:ex | ex resume: 1 ]. hangs (causes infinite loop) ? -- View this message in context: http://forum.world.st/Confusing-ZeroDivide-tp4813627.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
2015-03-20 16:56 GMT+01:00 webwarrior <reg@webwarrior.ws>:
Why this:
[ 1/0 ] on: ZeroDivide do: [:ex | ex resume: 1 ].
returns 1, but this:
[ 1.0/0 ] on: ZeroDivide do: [:ex | ex resume: 1 ].
hangs (causes infinite loop) ? ------------------------------ View this message in context: Confusing ZeroDivide <http://forum.world.st/Confusing-ZeroDivide-tp4813627.html> Sent from the Pharo Smalltalk Users mailing list archive <http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html> at Nabble.com.
It is a bug. and now it has a bug entry: 15187 <https://pharo.fogbugz.com/default.asp?15187> Endless loop on catching ZeroDivide for floats
2015-03-20 21:35 GMT+01:00 Nicolai Hess <nicolaihess@web.de>:
2015-03-20 16:56 GMT+01:00 webwarrior <reg@webwarrior.ws>:
Why this:
[ 1/0 ] on: ZeroDivide do: [:ex | ex resume: 1 ].
returns 1, but this:
[ 1.0/0 ] on: ZeroDivide do: [:ex | ex resume: 1 ].
hangs (causes infinite loop) ? ------------------------------ View this message in context: Confusing ZeroDivide <http://forum.world.st/Confusing-ZeroDivide-tp4813627.html> Sent from the Pharo Smalltalk Users mailing list archive <http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html> at Nabble.com.
It is a bug.
and now it has a bug entry:
15187 <https://pharo.fogbugz.com/default.asp?15187> Endless loop on catching ZeroDivide for floats
And it is fixed in 40572
participants (2)
-
Nicolai Hess -
webwarrior