<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 13.12.2010, at 13:06, Mariano Martinez Peck wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">sorry, it should be<br><br>SmallInteger class &gt;&gt; initialize<br>&nbsp;&nbsp;&nbsp; self addInstVarName: 
'Zaraza'.<br><br>Notice I want to add a class variable to SmallIneteger, not instVar. <br></blockquote></div><div><br></div><div><br></div><div>This is not really a VM question. Class variables are held in a dictionary. The VM knows nothing about this.</div><div><br></div><div>You add class variables simply by adding them to the class pool:</div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span>SmallInteger ensureClassPool.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>SmallInteger classPool at: #Zaraza put: 42.</div><div><br></div><div>
<div style="font-family: Helvetica; font-size: 12px; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div></div><br></body></html>