<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'>Thank you Eliot.<br><br>That makes sense.<br><br>I did read the BlueBook VM section and have copious notes, but the mental picture in my mind is flawed obviously.<br><br>I will re-read that with your reply in mind.<br><br>Thank you for your time.<br><br>tty<br><div id="1"><br>---- On Mon, 16 Dec 2013 11:04:50 -0800 <b>Eliot Miranda&lt;eliot.miranda@gmail.com&gt;</b> wrote ---- <br></div><br><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px; margin:0 0 0 5px"> <div dir="ltr"><br><div><br><br><div>On Sun, Dec 15, 2013 at 4:28 PM, gettimothy <span dir="ltr">&lt;<a subj="" mailid="gettimothy%40zoho.com" href="mailto:gettimothy@zoho.com" target="_blank">gettimothy@zoho.com</a>&gt;</span> wrote:<br> <blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">&nbsp;<br><u></u><div><div style="font-size:10pt;font-family:verdana,arial,helvetica,sans-serif">If you look at this (or attached, if it doesn't show up inline) picture&nbsp; from Eliot Miranda's&nbsp; <a href="http://www.mirandabanda.org/cogblog/category/cog/page/14/" target="_blank">Closure's Part I discussion</a> ,&nbsp; the naive &lt;cough&gt; me &lt;/cough&gt; would spend two days wondering whey there are no senders.<br> After all, its obvious that&nbsp; <b>--sender: nil </b>means that there are no senders.<br></div></div></blockquote><div><br></div><div>Assuming you're not joking, that's not what it means at all. &nbsp;The sender points to the sender context *until* it is returned from. &nbsp;We're inspecting a block, which got created in the Doit context for the expression [:n| ....]. &nbsp;And that DoIt context is the home context of the [:n|...] block. &nbsp;The DoIt context returned its result (the [:n|...] block) to whatever the sender context was. &nbsp;But when the DoIt context returned that result the DoIt context's sender was nilled, to indicate that it had been returned from. &nbsp;So by the time the [:n|...] block was inspected its home context's sender was nil.</div> <div><br></div><div>Have you tried reading through the BlueBook's VM section? &nbsp;That's an excellent presentation of the VM's operational semantics (its how I leaned). &nbsp;The only problem is that it presents BlueBook blocks, not closures. &nbsp;It would be great to rewrite it as a 32-bit closure VM -- when ever time allows ;-)</div> <div><br></div><div><br></div><blockquote 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><br><img><br> <br><br>From Squeak By Example, page 55 in the discussion of pseudo-variables, "<b>nil</b> is the unique instance of the class UndefinedObject".<br><br>Which makes perfect sense.<br><br>One of these days, I will get past paragraph 4 on this Closures Discussion, but boy, there are a lot of things going on under the hood there. (:<br> <br>Thanks for your patience as I try to grok this stuff.<br><br>cheers.<br><br>tty.<br></div></div><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div> </div></div> </blockquote><br></div></body></html>