error signal

Damien Cassou damien.cassou at gmail.com
Mon May 7 14:26:06 UTC 2007


Hi Norbert,

2007/5/7, Norbert Hartl <norbert at hartl.name>:
>         error signal = true
>                 ifTrue:
>                         [self reset.
>                         self logout.
>                         self reLogin.
>                         exception restart]
>
> This code comes from VW. Is the signal method implemented
> differently under VW. In squeak the "error signal" itself
> throws the error so there is no ifTrue: evaluation, right?

Are you sure that 'error' is an instance of Exception or one of its
subclasses? Maybe it's something else.

Moreover, I don't see the point of 'something = true ifTrue:'. Why
not: 'something ifTrue:'?

-- 
Damien Cassou



More information about the Squeak-dev mailing list