<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi all!</p>
<p><br>
</p>
<p>I was just wondering why IllegalResumeAttempt is not an error. An IllegalResumeAttempt is signaled when you try to #resume from an exception that is not resumable.</p>
<p><br>
</p>
<p>In my opinion, this should pretty clearly be an Error. Just like "nil + 1", "#() at: 0", or "'hello' at: 1 put: $H", the programmer is trying to perform an illegal operation so the EHS notices this error. Why should "Error new resume" (pseudo, of course) not
 be an Error?</p>
<p><br>
</p>
<p>I could imagine that in ancient days, when nested exception handling did not yet work as flawlessly as today (thanks Jaromir and Nicolas for all the work on this field!), the original designers tried to prevent the case in which a second exception was handled
 on the stack. Nevertheless, this limitation does not exist any longer today. It would not even be a problem (although not a recommended pattern) to say something like:</p>
<p><br>
</p>
<p></p>
<div>[self error + 1]</div>
<div>    on: Error</div>
<div>    do: [:ex1 |</div>
<div>        [ex1 resume: 42]</div>
<div>            on: IllegalResumeAttempt</div>
<div>            do: [:ex2 |</div>
<div>                "Well, then return instead"</div>
<div>                ex1 return: 42] ].</div>
<div><br>
</div>
<div>So why don't we just go and make IllegalResumeAttempt an Error? Its defaultAction is already completely compatible.</div>
<div><br>
</div>
<div>Best,</div>
<div>Christoph</div>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><font size="2" color="#808080"></font></div>
</div>
</div>
</div>
</div>
</body>
</html>