<div>Got what I needed done (thanks Bert!) <span class="Apple-tab-span" style="white-space:pre">T</span>his is what I went with:</div><div><span class="Apple-tab-span" style="white-space:pre"><br></span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>metaclass := Metaclass new</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>superclass: Some class;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>methodDictionary: MethodDictionary new;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>setFormat: Some class format;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>yourself.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>theme := metaclass new</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>superclass: Some;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>methodDictionary: MethodDictionary new;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>setFormat: Some format;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>yourself.</div>
<div><br></div><br><div class="gmail_quote">On Sun, Dec 19, 2010 at 10:14 AM, Hernán Morales Durand <span dir="ltr">&lt;<a href="mailto:hernan.morales@gmail.com">hernan.morales@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Casey,<br>
<br>
Can you comment what&#39;s your use case for anonymous subclass? Or maybe<br>
post some example/testing code?<br>
Cheers,<br>
<br>
2010/12/18 Casey Ransberger &lt;<a href="mailto:casey.obrien.r@gmail.com">casey.obrien.r@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hello all,<br>
&gt; I want to make an anonymous subclass, or a copy of (either way) a subclass<br>
&gt; of Object.<br>
&gt; I&#39;ve been googling around looking for an example of an anonymous subclass. I<br>
&gt; haven&#39;t had luck with anything I&#39;ve found. It&#39;s possible that there&#39;s<br>
&gt; something I&#39;m missing conceptually, because I&#39;ve read through various<br>
&gt; examples, but they all seem to do directly with Behavior or Class. I tried<br>
&gt; various combinations of things with both of the approaches I found. Some of<br>
&gt; them hung the image, with others the #primitiveChangeClassTo: would fail. I<br>
&gt; read the comment there, and am aware that using it is reckless behavior.<br>
&gt; I see that Smalltalk compactClassesArray gives me a list of the compact<br>
&gt; classes. I don&#39;t seem to understand the format part. I&#39;ve noticed that<br>
&gt; certain classes (e.g. Array) are declared &quot;variable subclasses&quot; but that&#39;s<br>
&gt; it. I googled and didn&#39;t turn up anything that seemed to help me grok it.<br>
&gt; Tried:<br>
&gt; Class format. &quot;answers 148&quot; Head scratch; think. ^self shrug<br>
&gt; Any pointers?<br>
&gt; --<br>
&gt; Casey Ransberger<br>
&gt;<br>
</div></div><div class="im">&gt; _______________________________________________<br>
&gt; Beginners mailing list<br>
&gt; <a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
&gt;<br>
&gt;<br>
<br>
</div>--<br>
Hernán Morales<br>
Information Technology Manager,<br>
Institute of Veterinary Genetics.<br>
National Scientific and Technical Research Council (CONICET).<br>
La Plata (1900), Buenos Aires, Argentina.<br>
Telephone: +54 (0221) 421-1799.<br>
Internal: 422<br>
Fax: 425-7980 or 421-1799.<br>
<div><div></div><div class="h5">_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Casey Ransberger<br>