<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Apr 21, 2012 at 9:50 PM, stephane ducasse <span dir="ltr">&lt;<a href="mailto:stephane.ducasse@gmail.com" target="_blank">stephane.ducasse@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"><div class="im"><br>
&gt;<br>
&gt; I&#39;m playing to bootstrap a Pharo image, trying to get a new environment running into my &#39;host&#39; image, and after that, dump those new objects into a new image file.<br>
&gt;<br>
&gt; Now, to do that, I&#39;m creating new classes for String, Character...  Which are well known by the vm specialObjectsArray.  And trying to initialize my new image classes, which creates new character objects, and new string objects which is causing me some troubles :P.<br>

&gt;<br>
&gt; Now, my question is about this check in vmmaker (and some others that look similar):<br>
&gt;<br>
&gt; Interpreter&gt;&gt;#asciiOfCharacter: characterObj  &quot;Returns an integer object&quot;<br>
&gt;     &lt;inline: false&gt;<br>
&gt;     self assertClassOf: characterObj is: (self splObj: ClassCharacter).<br>
&gt;     successFlag<br>
&gt;         ifTrue: [^ self fetchPointer: CharacterValueIndex ofObject: characterObj]<br>
&gt;         ifFalse: [^ ConstZero]  &quot;in case some code needs an int&quot;<br>
<br>
<br>
</div>Guillermo when you change the specialObjectsArray it does not solve your problem?<br>
I imagine that check a class pointer is way faster than looking in the method dict.<br>
Now why when you change the specialObjectArray it does not solve your problem?<br>
Do you need two?<br>
<br></blockquote><div>yes, or more :). (or none in the ideal case :( )<br></div></div><br></div>