[BUG?] Exception handle

Masashi Umezawa umejava at mars.dti.ne.jp
Thu Mar 4 06:55:34 UTC 2004


Hi,

> > [1/0] ifCurtailed: [Transcript show: 'exception']
> > doesn't work on Squeak 3.6-#5429, I guess.
> Well, I find ifCurtailed: difficult to understand myself,
> and I feel that "doesn't work" does not tell what you
> expect.
> When you evaluate the statement above, you get
> an error notifier. When you choose 'abandon' that
> notifier closes and the string 'exception' is written
> into the Transcript. I tried this also with  VisualWorks,
> Dolphin and Smalltalk/X and it is the same everywhere.
> 

But, 

[1/0] ifCurtailed: [self halt].

does not halt even if we push the 'abandon' button.
(It was his original test code, anyway).

[1/0] ifCurtailed: [2/0].
The latter block's exception handler seems not to be working.

Cheers,
---
[:masashi | ^umezawa]




More information about the Squeak-dev mailing list