Hi All,<div><br></div><div> an attempt to resume an unresumable signal results in raising IllegalResumeAttempt; quite right:</div><div><br></div><div>Exception>>resume</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"Return from the message that signaled the receiver."</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>self resume: self defaultResumeValue</div><div><br></div><div><br></div><div>However, IllegalResumeAttempt is not itself resumable. So in those rare cases (e.g. test coverage) where a knowledgeable client wants to force resumption of a non-resumable signal by catching and resuming IllegalResumeAttempt, they can't because</div>
<div><br></div><div>IllegalResumeAttempt>>isResumable</div><div><span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>^ false</div><div>
<br></div><div><br></div><div>So take e.g.</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>[Cogit chooseCogitClass testPCMappingSelect: [:m| true]]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>on: AssertionFailure</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>do: [:ex| | ctxt |</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>ctxt := ex signalerContext findContextSuchThat:</div><div><span class="Apple-tab-span" style="white-space:pre">                                                </span>[:ctx| ctx sender selector = #allSelect:].</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>Transcript ensureCr; print: (ctxt tempAt: 1); flush.</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>[ex resume]</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>on: IllegalResumeAttempt</div>
<div><span class="Apple-tab-span" style="white-space:pre">                                </span>do: [:ex| ex resume]]</div></div><div><br></div><div>where I'm trying to JIT every method in my image and catalogue those that assert-fail, proceeding through the assert failure (and AssertionFailure isn't resumable). I happen to know that proceeding from the assert-fails is safe. But I can't force resumption because IllegalResumeAttempt is itself not resumable.</div>
<div><br></div><div>I propose that we make IllegalResumeAttempt resumable. Objections? Cautions?</div><div><br></div><div>best</div><div>Eliot</div>