On Sun, May 25, 2008 at 12:59 AM, Randal L. Schwartz &lt;<a href="mailto:merlyn@stonehenge.com">merlyn@stonehenge.com</a>&gt; wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Rob&gt; Or would doing this just be bad form?<br>
<br>
Yes. &nbsp;While you *can* do a lot of magic like this, it&#39;s probably<br>
best if you avoid it for now. &nbsp;A typical pattern is to pass self:<br>
<br>
<br>
MyObject&gt;&gt;doSomething<br>
 &nbsp;^self otherClass makeSomethingOn: self.</blockquote><div><br>Thanks...this is almost what I did, lacking the &quot;bad form&quot; MethodContext introspecting methods you described.&nbsp; Although I admit I hardwired it as below, but will rectify that soon enough! <br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Also note: don&#39;t hardwire a helper class name in your methods. &nbsp;Use<br>
a method call to get it, so you&#39;d say:<br>
<br>
MyObject&gt;&gt;otherClass<br>
 &nbsp;^TheOtherClass<br>
<br>
If you hardwire it, it&#39;ll make your class much harder to subclass.</blockquote></div><br>Which is what I am doing (subclassing).&nbsp; This &quot;trivial&quot; example shows I am making progress but still somewhat bound by the laws of non-object programming!<br>
<br>Thanks again,<br><br>Rob<br>