<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-06-06 17:55 GMT+02:00 Nicolas Cellier <span dir="ltr">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-06 12:43 GMT+02:00 Nicolas Cellier <span dir="ltr">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>&gt;</span>:<div class="">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2014-06-06 4:48 GMT+02:00 David T. Lewis <span dir="ltr">&lt;<a href="mailto:lewis@mail.msen.com" target="_blank">lewis@mail.msen.com</a>&gt;</span>:<div>

<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The change behaves as described, fixing testHandlerFromAction and introducing<br>
the (now expected) failure into testHandlerRentrancy.<br>
<br>
I am not qualified to offer any more useful critique other than to say that<br>
is clear that Nicolas has put some serious thought into this issue and I<br>
hope that others will take a close look at it.<br>
<br>
Dave<br>
<div><div><br></div></div></blockquote></div><div><div><br>Thanks David,<br></div>Added wisdom: googling about usage of #rearmHandlerDuring: it seems required by Island mechanism in Tweak see<br><a href="https://code.google.com/p/pharo/issues/detail?id=2519" target="_blank">https://code.google.com/p/pharo/issues/detail?id=2519</a><br>


<br></div><div>Maybe there is another implementation possible in Tweak, but that&#39;s definitely the main usage of  #rearmHandlerDuring:<br><br></div><div>I also see this hack in VMMaker:<br><a href="http://forum.world.st/VM-Maker-VMMaker-oscog-eem-180-mcz-td4637135.html" target="_blank">http://forum.world.st/VM-Maker-VMMaker-oscog-eem-180-mcz-td4637135.html</a><br>


</div><div>found after this thread:<br><a href="http://web.archiveorange.com/archive/v/kLJIkmCV2lbVUoHLbp3R" target="_blank">http://web.archiveorange.com/archive/v/kLJIkmCV2lbVUoHLbp3R</a><br></div><div><br></div><div>I&#39;ll try and give a try to above Eliot&#39;s snippets<br>


<br><br></div></div></div></div></blockquote></div><div><br>And good news, the new implementation of rearmHandlerDuring: is still work on Eliot&#39;s snippets (#caught is correctly transcripted 5 times).<br></div><div>Though the count of second snippet is still 1</div>
</div></div></div></blockquote><div><br></div><div>Nah! The count is not 1 when the outer handler is rearmed.<br></div><div>The count is 6 (1 initial ProgressInitiationException + 5 inner Notification).<br></div><div>The return value is 1 (it is the value returned by 1 to: 5 do: ...), and that&#39;s what abused me.<br>
<br><br></div></div></div></div>