<br><br><div class="gmail_quote">On Tue, Dec 14, 2010 at 10:18 AM, Andreas Raab <span dir="ltr">&lt;<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</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;">
<div class="im"><br>
On 12/14/2010 1:09 AM, Igor Stasenko wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Notice I want to add a class variable to SmallIneteger, not instVar.<br>
</blockquote>
<br>
This is not really a VM question. Class variables are held in a<br>
dictionary. The VM knows nothing about this.<br>
</blockquote>
<br>
And of course class vars are added by using #addClassVarName: not<br>
#addInstVarName:.<br>
<br>
</blockquote>
<br>
class inst var should be ok too. Not sure what the correct message for<br>
adding it programmatically.<br>
</blockquote>
<br></div>
Obviously that would be &quot;self -&gt;class&lt;- addInstVarName: &#39;classInstVarName&#39;&quot;.<br>
<br></blockquote><div><br>Yep....sorry. <br><br>Conclusion:  do not program while building the christmas tree with your wife ;)<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

BTW, you do realize that you can try all of this right in the browser, no? All you need is to go to class SmallInteger and edit the class definition. Then you can see whether it is possible to add instance variables (it&#39;s not), class variables (works fine), or class instance variables (works fine, too). And once you&#39;ve tried this it should be pretty obvious that your code is broken and not the VM and/or ClassBuilder.<br>
</blockquote><div><br>yes, that a good tip. Thanks<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Cheers,<br><font color="#888888">
  - Andreas<br>
</font></blockquote></div><br>