<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        > <span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"> Try to remove the primitive from </span><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">#yield and then it works ok</span><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Yes, removing the primitive form #yield will introduce one (or more) suspension points because of the (rather complex) fallback implementation. Yet, I cannot do that in a test. :-)</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px"><br></span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Best,</span></div><div><span style="font-family: Arial, Helvetica, sans-serif;font-size: 13px">Marcel</span></div><div class="mb_sig"></div>
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 02.02.2021 14:14:14 schrieb jaromir <m@jaromir.net>:</p><div style="font-family:Arial,Helvetica,sans-serif">> However, I have no idea why the following happens:<br>><br>> x := 0.<br>> [ [ x := 1 ] forkAt: 41 ] valueUnpreemptively.<br>> y := x == 1. "false :-("<br>><br>><br>> Or this:<br>><br>> x := 0.<br>> [ [ x := 1 ] forkAt: 41 ] valueUnpreemptively.<br>> Transcript showln: 'foo'.<br>> y := x == 1. "false :-("<br><br>The reason is the #yield primitive 167 - it doesn't reflect the change of<br>priority as done in #valueUnpreemptively... Try to remove the primitive from<br>#yield and then it works ok<br>Regards,<br>Jaromir<br><br><br><br>--<br>Sent from: http://forum.world.st/Squeak-Dev-f45488.html<br><br></div></blockquote></div>