> 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
>> 
>> 
>> 
> 


Reply via email to