<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Marcel,</p>
<p><br>
</p>
<p>#<span>cannotReturn: is put onto the stack of the process being executed/simulated. #send:to:with: is part of the simulation protocol. Analogously, #resume:through: will appear on the executed process stack whereas #return:from: is used by the simulator
 as stated in the comment. :-) I think these methods are already arranged in two different protocols, which are "controlling" for the execution perspective and "instruction decoding" for the simulation perspective.</span></p>
<p><span><br>
</span></p>
<p><span>Best,</span></p>
<p><span>Christoph</span></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>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Taeumel, Marcel<br>
<b>Gesendet:</b> Montag, 19. April 2021 11:32:53<br>
<b>An:</b> squeak-dev<br>
<b>Betreff:</b> [squeak-dev] Idioms | How to send messages in Context?</font>
<div> </div>
</div>
<div>
<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
Hi all!
<div class="mb_sig"></div>
<div><br>
</div>
<div>Take a look at this:</div>
<div><br>
</div>
<div><img id="32990300-5ea8-44df-9f5f-356419fa59e5" width="572" height="197" src="cid:f1a64b9d-78f4-4480-bacf-75cff8b29d45"><!-- </img> --><br>
</div>
<div><br>
</div>
<div>When would a context use #send:to:with: and when just directly send it?</div>
<div><br>
</div>
<div>self send: #cannotReturn: to: self with: {value}.</div>
<div>self cannotReturn: value.</div>
<div><br>
</div>
<div>self send: #cannotReturn:to: to: self with: {value. self}.<br>
</div>
<div>self cannotReturn: value to: self.</div>
<div><br>
</div>
<div>There are other examples. See:</div>
<div>Context >> #jump:if:</div>
<div>Context >> #return:from:</div>
<div><br>
</div>
<div>Best,</div>
<div>Marcel</div>
</div>
</div>
</body>
</html>