I proceed on the code simulation error, it continued fine<br><br><div class="gmail_quote">2012/3/11 Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>></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>
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 simulated.<br>
<br>
2012/3/11 °Áø¿À <<a href="mailto:jinoh67@gmail.com">jinoh67@gmail.com</a>>:<br>
<div class="HOEnZb"><div class="h5">> I found that method in these methods:<br>
> not method, but primitive<br>
> 2012/3/11 °Áø¿À <<a href="mailto:jinoh67@gmail.com">jinoh67@gmail.com</a>><br>
>><br>
>> What does the following primitive do?<br>
>><br>
>> newProcess<br>
>> "Answer a Process running the code in the receiver. The process is not<br>
>> scheduled."<br>
>> <primitive: 19> "Simulation guard"<br>
>> ^Process<br>
>> forContext:<br>
>> [self value.<br>
>> Processor terminateActive] asContext<br>
>> priority: Processor activePriority<br>
>><br>
>> I found that method in these methods:<br>
>><br>
>> BlockClosure newProcess {scheduling}<br>
>> BlockClosure newProcessWith: {scheduling}<br>
>> BlockContext newProcess {scheduling}<br>
>> BlockContext newProcessWith: {scheduling}<br>
>> ControlManager activeController: {accessing}<br>
>> ControlManager scheduleActive: {scheduling}<br>
>> Debugger class openContext:label:contents: {class initialization}<br>
>> Debugger class openInterrupt:onProcess: {opening}<br>
>> SyntaxError class open: {instance creation}<br>
>><br>
>> It seems the methods works even though I delete the primitive.<br>
>> I couldn't find any documentation about it, so what does the primitive do?<br>
>> Can any methods contain the primitive?<br>
><br>
><br>
><br>
><br>
><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>