I debuged it, and It shows &quot;Code simulation error&quot;<br><br><div class="gmail_quote">2012/3/11 Igor Stasenko <span dir="ltr">&lt;<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>&gt;</span><br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
This is a primitive which does nothing, just always fails.<br>
<br>
They are there in some key methods to guard against simulation:<br>
&nbsp;when you debugging and try to step in into those methods , a debugger<br>
will stop with error.<br>
<br>
For example try to debug following:<br>
[ 1+ 1] newProcess<br>
<br>
<br>
Yes, we should review the places where simulation cannot run.<br>
I do not see why #newProcess needs to be guarded against simulation.<br>
The code in it does nothing special,<br>
which cannot be &nbsp;simulated.<br>
<br>
2012/3/11 °­Áø¿À &lt;<a href="mailto:jinoh67@gmail.com">jinoh67@gmail.com</a>&gt;:<br>
<div class="HOEnZb"><div class="h5">&gt; I found that method in these methods:<br>
&gt; not method, but primitive<br>
&gt; 2012/3/11 °­Áø¿À &lt;<a href="mailto:jinoh67@gmail.com">jinoh67@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; What does the following primitive&nbsp;do?<br>
&gt;&gt;<br>
&gt;&gt; newProcess<br>
&gt;&gt; &nbsp;&quot;Answer a Process running the code in the receiver. The process is not<br>
&gt;&gt; &nbsp;scheduled.&quot;<br>
&gt;&gt; &nbsp;&lt;primitive: 19&gt; &quot;Simulation guard&quot;<br>
&gt;&gt; &nbsp;^Process<br>
&gt;&gt; &nbsp;&nbsp;forContext:<br>
&gt;&gt; &nbsp;&nbsp;&nbsp;[self value.<br>
&gt;&gt; &nbsp;&nbsp;&nbsp;Processor terminateActive] asContext<br>
&gt;&gt; &nbsp;&nbsp;priority: Processor activePriority<br>
&gt;&gt;<br>
&gt;&gt; I found that method in these methods:<br>
&gt;&gt;<br>
&gt;&gt; BlockClosure newProcess {scheduling}<br>
&gt;&gt; BlockClosure newProcessWith: {scheduling}<br>
&gt;&gt; BlockContext newProcess {scheduling}<br>
&gt;&gt; BlockContext newProcessWith: {scheduling}<br>
&gt;&gt; ControlManager activeController: {accessing}<br>
&gt;&gt; ControlManager scheduleActive: {scheduling}<br>
&gt;&gt; Debugger class openContext:label:contents: {class initialization}<br>
&gt;&gt; Debugger class openInterrupt:onProcess: {opening}<br>
&gt;&gt; SyntaxError class open: {instance creation}<br>
&gt;&gt;<br>
&gt;&gt; It seems the methods works even though I delete the primitive.<br>
&gt;&gt; I couldn&#39;t find any documentation about it, so what does the primitive do?<br>
&gt;&gt; Can any methods contain the primitive?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Best regards,<br>
Igor Stasenko.<br>
<br>
</font></span></blockquote></div><br>