<html>
<body>
<font size=3>The exception can resume, which is the only way the
comparison would run. And it might not be resumed with a boolean, thus
the = true test.<br><br>
At 10:26 AM 5/7/2007, Damien Cassou wrote:<br>
<blockquote type=cite class=cite cite="">Hi Norbert,<br><br>
2007/5/7, Norbert Hartl <norbert@hartl.name>:<br>
<blockquote type=cite class=cite cite="">
error signal = true<br>
ifTrue:<br>
[self reset.<br>
self logout.<br>
self reLogin.<br>
exception restart]<br><br>
This code comes from VW. Is the signal method implemented<br>
differently under VW. In squeak the "error signal" itself<br>
throws the error so there is no ifTrue: evaluation,
right?</blockquote><br>
Are you sure that 'error' is an instance of Exception or one of its<br>
subclasses? Maybe it's something else.<br><br>
Moreover, I don't see the point of 'something = true ifTrue:'. Why<br>
not: 'something ifTrue:'?<br><br>
-- <br>
Damien Cassou<br>
</font></blockquote></body>
<br>
<div>--</div>
<div>Alan Knight [|], Cincom Smalltalk Development</div>
<div>knight@acm.org</div>
<div>aknight@cincom.com</div>
<div><a href="http://www.cincom.com/smalltalk" EUDORA=AUTOURL>
http://www.cincom.com/smalltalk</a></div>
<br>
<div>"The Static Typing Philosophy: Make it fast. Make it right.
Make it run." - Niall Ross</div>
</html>