Re: [Pharo-users] Semantics of #resignalAs:
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 <norbert@hartl.name>:
Am 23.07.2015 um 17:54 schrieb Joachim Tuchel <jtuchel@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 <norbert@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
participants (1)
-
Joachim Tuchel