<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 9, 2013 at 10:40 AM, gettimothy <span dir="ltr">&lt;<a href="mailto:gettimothy@zoho.com" target="_blank">gettimothy@zoho.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br><u></u><div><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif">Does sending the message &#39;value&#39; to a block always mean the return is to the caller context? or are there instances where the return is to the home context?<br>
[burp + self wonk] value.<br></div></div></blockquote><div><br></div><div>[^burp + self wonk] value</div><div><br></div><div>returns to the sender (of the home context), hence the term &quot;up-arrow return&quot;.</div><div>
<br></div><div>BTW, Squeak no longer has BlockContext.  It has full closures; see my blog posts on the closure compiler.  The difference is not major.  Essentially a block (closure, BlockClosure) is created when the code encounters [....], and a block activation is created when that gets sent value[:value:...].</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif">Conversely, if there is no value message sent to the block, do  I know that the return context is the home context (i.e. where the block was defined) and never to a caller context?<br>
boop ifTrue:[ ^self latestAnswer]<br></div></div></blockquote><div><br></div><div>Up-arrow return is always to the sender of the home.  Return to the caller happens only if the flow of control reaches the end of the block without encountering an up-arrow return.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif"><br>I am assuming yes, but given that my last assumption was incorrect, I thought I would ask.<br>
<br>Just a simple yes or no is sufficient.<br><br>thx.<br><br>tty<br><br></div></div><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>