<!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-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Christoph and Eliot,<br></div><div><br></div><div>Thank you both.<br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div style="" data-zbluepencil-ignore="true" class="zmail_extra"><br><div id="Zm-_Id_-Sgn1">---- On Sat, 12 Sep 2020 10:40:20 -0400 <b>Eliot Miranda <eliot.miranda@gmail.com></b> wrote ----<br></div><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0px 0px 0px 5px;"><div dir="auto">Hi tty,<div dir="ltr"><br><blockquote>On Sep 12, 2020, at 7:18 AM, gettimothy via Squeak-dev <<a href="mailto:squeak-dev@lists.squeakfoundation.org" target="_blank">squeak-dev@lists.squeakfoundation.org</a>> wrote:<br><br></blockquote></div><blockquote><div dir="ltr"><div style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;"><div>Ignore if spam...<br></div></div></div></blockquote><div><br></div>It’s not spam.<div><br><blockquote><div dir="ltr"><div style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;"><div><br></div><div><br></div><div>It is interesting that I can reset a class instance variable inside one of the methods of a class with a doit.<br></div><div>However, I cannot do it from a Workspace .<br></div></div></div></blockquote><div><br></div>The creasing is that doits always happen in the context of a specific receiver and different contexts have different receivers.  Trace Compiler class>>#evaluate: down and you’ll see where the receiver is supplied before the Compiler instance is created.</div><div><br></div><div>In a Workspace the receiver is nil.<br></div><div>In an Inspector the receiver is the object being inspected <br></div><div>In an explorer the receiver is the currently selected object (IIRC)<br></div><div>In a browser the receiver is the currently selected class (or nil if none selected, or the current method’s class in a method list browser)<br></div><div><br></div><div>And within a doit (naturally since a doit is simply an anonymous method) all the inst cars if the receiver are in scope.  Since nil has no inst vars there are no inst vars in scope in a workspace.<br></div><div><br></div><div><br><blockquote><div dir="ltr"><div style="font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 10.0pt;"><div><br></div><div><br></div><div>TemplateTitleWords := nil  from within the method area works (surprising, but very handy).<br></div><div>WikitextTemplates TemplateTitleWords :=  nil.  does not (as expected)<br></div><div><br></div><div>I expect the latter, I am surprised by the former.<br></div><div><br></div><div>Don't get me wrong, it is a handy feature , but if it is a bug, here is a heads up.<br></div><div><br></div><div>cheers,<br></div><div><br></div><div>tty<br></div></div><br><span></span><br></div></blockquote></div></div></blockquote></div><div><br></div></div><br></body></html>