Hi Randal, <br><br>sorry about using colors, the line in red was the last one, the return<br><font size="1"><span style="font-family: courier new,monospace; color: rgb(255, 0, 0);"><br>↑ aMessage sentTo: self.</span></font><br>
<br>What you said makes things clear, with the "resume" we need that line... <br><br>Thanks for the explanation, <br>Erlis <br><br><div class="gmail_quote">On Thu, Apr 14, 2011 at 2:52 PM, Randal L. Schwartz <span dir="ltr"><<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">>>>>> "Erlis" == Erlis Vidal <<a href="mailto:erlis@erlisvidal.com">erlis@erlisvidal.com</a>> writes:<br>
<br>
Erlis> I'm having problem with the line in red.<br>
<br>
I don't see anything in red. Please note that many of us read messages<br>
in plain ASCII or unicode, not crappy HTML-pretending-to-be-email.<br>
<br>
Erlis> The method is pretty simple, it<br>
Erlis> just create a new MessageNotUnderstood instance and then send the message:<br>
Erlis> and receiver: messages, but it also *signal *the exception, which I was<br>
Erlis> thinking will finish the method execution, but if that's the case, Why the<br>
Erlis> red line? Why returning anything after signaling the exception?<br>
<br>
I think you're referring to the fact that someone can say "resume" even<br>
after the signal has been thrown. That will return back to *this*<br>
context, and resend the original message. That's exactly the flow you<br>
want if you want a chance to fix something in a debugger, and then retry<br>
the original request. The debugger "proceed" will come back to here,<br>
but the original message needs to be resent, probably poking at a new<br>
version of a method (or one of the methods it calls).<br>
<br>
--<br>
<font color="#888888">Randal L. Schwartz - Stonehenge Consulting Services, Inc. - <a href="tel:%2B1%20503%20777%200095" value="+15037770095">+1 503 777 0095</a><br>
<<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>> <URL:<a href="http://www.stonehenge.com/merlyn/" target="_blank">http://www.stonehenge.com/merlyn/</a>><br>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.<br>
See <a href="http://methodsandmessages.posterous.com/" target="_blank">http://methodsandmessages.posterous.com/</a> for Smalltalk discussion<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</font></blockquote></div><br>