[Newbies] Exception question

Erlis Vidal erlis at erlisvidal.com
Thu Apr 14 19:53:51 UTC 2011

Hi Randal,

sorry about using colors, the line in red was the last one, the return

↑ aMessage sentTo: self.

What you said makes things clear, with the "resume" we need that line...

Thanks for the explanation,

On Thu, Apr 14, 2011 at 2:52 PM, Randal L. Schwartz
<merlyn at stonehenge.com>wrote:

> >>>>> "Erlis" == Erlis Vidal <erlis at erlisvidal.com> writes:
> Erlis> I'm having problem with the line in red.
> I don't see anything in red.  Please note that many of us read messages
> in plain ASCII or unicode, not crappy HTML-pretending-to-be-email.
> Erlis>  The method is pretty simple, it
> Erlis> just create a new MessageNotUnderstood instance and then send the
> message:
> Erlis> and receiver: messages, but it also *signal *the exception, which I
> was
> Erlis> thinking will finish the method execution, but if that's the case,
> Why the
> Erlis> red line? Why returning anything after signaling the exception?
> I think you're referring to the fact that someone can say "resume" even
> after the signal has been thrown.  That will return back to *this*
> context, and resend the original message.  That's exactly the flow you
> want if you want a chance to fix something in a debugger, and then retry
> the original request.  The debugger "proceed" will come back to here,
> but the original message needs to be resent, probably poking at a new
> version of a method (or one of the methods it calls).
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777
> 0095
> <merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> See http://methodsandmessages.posterous.com/ for Smalltalk discussion
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20110414/2d5a533a/attachment.htm

More information about the Beginners mailing list