<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div><br>On Apr 5, 2017, at 1:35 AM, Denis Kudriashov <<a href="mailto:dionisiydk@gmail.com">dionisiydk@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi guys.<div><br><div>I could not accept your explanation because I have test which works on latest squeakVM and not works on latest pharoVM. Try filein attachment and check it on both VMs. Test not depends on any difference between squeak and pharo images. You run it on both systems (not only VM's).</div><div>I found that #primitiveFindSubstring not depends on receiver and you can put it on any class in system (in github C code there is no users of "<span style="color:rgb(36,41,46);font-family:sfmono-regular,consolas,'liberation mono',menlo,courier,monospace;font-size:12px;white-space:pre">rcvr" variable)</span>. So I just copy primitive method in test class.<br></div><div><br></div><div>But I could imaging that I not see/know something trivial. I will be glad to expand my mind :) but I see only reason: primitive is different (or absent) on latest pharoVM. </div></div></div></div></blockquote><div><br></div><div><br></div>Can we not simply compare the sources of src/plugins/MiscPrimitivesPlugin/<span style="background-color: rgba(255, 255, 255, 0);">MiscPrimitivesPlugin.c in the two VMs?</span><div><br></div><div>(If we were using one set of sources this issue would be moot).</div><div><br><blockquote type="cite"><div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-04 19:03 GMT+02:00 Esteban Lorenzano <span dir="ltr"><<a href="mailto:estebanlm@gmail.com" target="_blank">estebanlm@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="h5"><br><div><blockquote type="cite"><div>On 4 Apr 2017, at 19:00, Denis Kudriashov <<a href="mailto:dionisiydk@gmail.com" target="_blank">dionisiydk@gmail.com</a>> wrote:</div><br class="m_-7970655120173482239Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2017-04-04 18:45 GMT+02:00 Esteban Lorenzano <span dir="ltr"><<a href="mailto:estebanlm@gmail.com" target="_blank">estebanlm@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><blockquote type="cite"><div><div dir="ltr">> I think you are wrong because I check it carefully in Squeak and I found it on github <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/search?utf8=%E2%9C%93&q=primitiveFindSubstring&type=" target="_blank">https://github.com/OpenSmallta<wbr>lk/opensmalltalk-vm/search?<wbr>utf8=✓&q=primitiveFindSubstrin<wbr>g&type=</a>.<br></div></div></blockquote><div><br></div></span><div>still is not there, because is not the same primitive :)</div></blockquote></div><br>Does it also means that latest VM is built differently then stable? (primitive works on stable pharo). I just thought that we already moved to opensmalltalk build process.</div></div>
</div></blockquote><br></div></div></div><div>stable works because the bug ByteString>>#find… instead of String>>#find… was introduced later. </div><br></div></blockquote></div><br></div>
</div></blockquote><blockquote type="cite"><div><<a href="http://FindStringPrimitiveTests.st">FindStringPrimitiveTests.st</a>></div></blockquote></div></body></html>