<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Chris,</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 27, 2022 at 11:50 AM Chris Muller <<a href="mailto:ma.chris.m@gmail.com">ma.chris.m@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto"><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">If the latter is the case, it would be a Heisentool, where the attempt of using it changes that which it is supposed to observe. :-P</div></div></blockquote><div><br></div><div>Which is why I don't use the pointer explorer when I'm trying to clean all instance of a class out.  Instead:</div><div><br></div><div>    TheClass allInstances anyOne chasePointers</div></div></div></div></blockquote><br><div><div dir="ltr"><div dir="ltr"><div class="gmail_quote">TheClass someInstance ifNotNil: [:obj| obj chasePointers]</div></div></div></div></div></blockquote><div><br></div><div>Ah, I will start using #someInstance, but typing ifNotNil: is a lot more work than closing a debugger when no more instances.  Besides, wouldn't the Block Context's var, "obj" be another possible reference that #chasePointers might pick up on?</div></div></div></blockquote><div><br></div><div class="gmail_default" style="font-size:small">ifNotNil: is inlined.  It is equivalent to this, but saves the temp decl, which is why it's so nice.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">| obj |</div><div class="gmail_default" style="font-size:small">obj := TheClass someInstance.</div><div class="gmail_default" style="font-size:small">obj == nil ifFalse: [obj chasePointers]</div></div><div><br></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>