<div dir="ltr">Yeah, I also already noticed about these nested nested nested policies...<br>All this is far from obvious and the comments do not help ;)<br><br>Still on the same subject there is also this previous analysis in <a href="http://source.squeak.org/inbox/Kernel-nice.798.diff">http://source.squeak.org/inbox/Kernel-nice.798.diff</a> which explains how you can have access to the environment of your superclass... I don&#39;t know if it is still true, but for me, the fact that I couldn&#39;t correct this was not a sign of good health.<cite class=""> <br></cite></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-31 2:10 GMT+01:00 Chris Muller <span dir="ltr">&lt;<a href="mailto:ma.chris.m@gmail.com" target="_blank">ma.chris.m@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Oct 30, 2014 at 5:28 PM, Levente Uzonyi &lt;<a href="mailto:leves@elte.hu">leves@elte.hu</a>&gt; wrote:<br>
&gt; On Thu, 30 Oct 2014, Chris Muller wrote:<br>
&gt;<br>
&gt;&gt; Thanks guys, those both helped.  After defining X I found I could do a<br>
&gt;&gt; &quot;Smalltalk importSelf&quot; to get it copied into the &#39;bindings&#39;<br>
&gt;&gt; Dictionary.<br>
&gt;<br>
&gt;<br>
&gt; #importSelf is not what you want do, because that&#39;ll add the same policy to<br>
&gt; your environment again.<br>
<br>
</span>Oh wow, and it even will allow duplicates..(!?)  I didn&#39;t even notice<br>
that because I was just interested in the second part of that method.<br>
<br>
I was just operating as a Smalltalker; backtracing what was causing my<br>
#X lookup problem, and found it was because it wasn&#39;t in &#39;bindings&#39;.<br>
So I browsed who ever adds anything into &#39;bindings&#39;?  Only #importSelf<br>
and #showBinding:.  So to get the &quot;side-effect&quot; I wanted, I<br>
inadvertently also added a second BindingPolicy.  I manually removed<br>
the duplicate BindingPolicy, thanks for the heads-up.<br>
<br>
I think Squeak&#39;s frameworks should be implemented in a way that caters<br>
to its own IDE, so Smalltalker&#39;s can figure things out by those normal<br>
tracing activities (senders, references, implementors).  #importSelf<br>
seems like a not-so-good method.<br>
<br>
</blockquote></div><br></div>