Definitely looks wrong to me... The catching block shouldn't catch
exceptions in itself, and a resignal should never run the block again...
I'll try this in VAST.
Am 23.07.15 um 20:05 schrieb Norbert Hartl:
You get a debugger at the position if the halt in the code. Meaning the
exception block run more than once. And it would run forever.
Norbert
Am 23.07.2015 um 18:46 schrieb Joachim Tuchel <jtuc...@objektfabrik.de>:
Norbert,
Sorry if this is a stupid question: what does the debugger say?
I mean, assuming NotFound is an Exception, I'd expect a debugger showing a
NotFound Error...
Joachim
Am 23.07.2015 18:34 schrieb Norbert Hartl <norb...@hartl.name>:
Am 23.07.2015 um 17:54 schrieb Joachim Tuchel <jtuc...@objektfabrik.de>:
Norbert,
I'd say you get a NotFound Exception.
In pharo you get a debugger. Meaning this piece of code is actively an endless
loop.
Norbert
Joachim
Am 23.07.2015 um 16:20 schrieb Norbert Hartl <norb...@hartl.name>:
What are the semantics of Exception>>#resignalAs: regarding active exception
handler? Isn't the active exception handler excluded from being treated again? Taking
the example
| counter |
counter := 0.
[ 1/0 ]
on: Error
do: [ :e |
counter := counter + 1.
counter > 1 ifTrue: [ self halt ].
e resignalAs: NotFound new ].
should it just run and end? Or should the debugger pop up?
thanks,
Norbert
--
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel mailto:jtuc...@objektfabrik.de
Fliederweg 1 http://www.objektfabrik.de
D-71640 Ludwigsburg http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1