Hello all,<div><br></div><div>I want to make an anonymous subclass, or a copy of (either way) a subclass of Object.</div><div><br></div><div>I&#39;ve been googling around looking for an example of an anonymous subclass. I haven&#39;t had luck with anything I&#39;ve found. It&#39;s possible that there&#39;s something I&#39;m missing conceptually, because I&#39;ve read through various examples, but they all seem to do directly with Behavior or Class. I tried various combinations of things with both of the approaches I found. Some of them hung the image, with others the #primitiveChangeClassTo: would fail. I read the comment there, and am aware that using it is reckless behavior.</div>
<div><br></div><div>I see that Smalltalk compactClassesArray gives me a list of the compact classes. I don&#39;t seem to understand the format part. I&#39;ve noticed that certain classes (e.g. Array) are declared &quot;variable subclasses&quot; but that&#39;s it. I googled and didn&#39;t turn up anything that seemed to help me grok it.</div>
<div><br></div><div>Tried:</div><div><br></div><div>Class format. &quot;answers 148&quot; Head scratch; think. ^self shrug</div><div><br></div><div>Any pointers?<br>-- <br>Casey Ransberger<br>
</div>