sorry, it should be<br><br>SmallInteger class &gt;&gt; initialize<br>    self addInstVarName: 
&#39;Zaraza&#39;.<br><br>Notice I want to add a class variable to SmallIneteger, not instVar. <br><br>Cheers<br><br>mariano<br><br><div class="gmail_quote">On Mon, Dec 13, 2010 at 9:16 PM, Mariano Martinez Peck <span dir="ltr">&lt;<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi folks. Sorry for the cross-post, I am not sure if it is image or vm problem.<br><br>If I implement this:<br>
<br>SmallInteger &gt;&gt; initialize<br>    self addInstVarName: &#39;Zaraza&#39;.<br><br>I have the error: &#39;SmallInteger cannot be changed&#39;<br>
<br>This is because SmallInteger is in the ClassBuilder &gt;&gt; tooDangerousClasses<br>and the error is in ClassBuilder &gt;&gt; name: className inEnvironment: env subclassOf: newSuper type: type instanceVariableNames: instVarString classVariableNames: classVarString poolDictionaries: poolString category: category unsafe: unsafe<br>

<br>Now....since this is Smalltalk, I can just comment something, continue, or any other kind of hack so that I can add class variables to SmallInetger. <br>For my CompiledMethod proxies stuff, I am using SmallIntegers and I have some crashes (one is due to a corrupt heap and Eliot said something about sizes)...I wonder if this is related to this...So the question is:  is really SMallInteger a too dangerous class so that it cannot be changed? not even adding a class variable???  does the VM assume that the class SmallInetger has a fixed size?  if true, where?<br>

<br>Thanks in advance<br><font color="#888888"><br>Mariano<br>
</font></blockquote></div><br>