<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't know if it is still true, but for me, the fact that I couldn'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"><<a href="mailto:ma.chris.m@gmail.com" target="_blank">ma.chris.m@gmail.com</a>></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 <<a href="mailto:leves@elte.hu">leves@elte.hu</a>> wrote:<br>
> On Thu, 30 Oct 2014, Chris Muller wrote:<br>
><br>
>> Thanks guys, those both helped. After defining X I found I could do a<br>
>> "Smalltalk importSelf" to get it copied into the 'bindings'<br>
>> Dictionary.<br>
><br>
><br>
> #importSelf is not what you want do, because that'll add the same policy to<br>
> your environment again.<br>
<br>
</span>Oh wow, and it even will allow duplicates..(!?) I didn'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't in 'bindings'.<br>
So I browsed who ever adds anything into 'bindings'? Only #importSelf<br>
and #showBinding:. So to get the "side-effect" 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's frameworks should be implemented in a way that caters<br>
to its own IDE, so Smalltalker'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>