Hi guys. 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). 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 "rcvr" variable). So I just copy primitive method in test class.
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. 2017-04-04 19:03 GMT+02:00 Esteban Lorenzano <[email protected]>: > > On 4 Apr 2017, at 19:00, Denis Kudriashov <[email protected]> wrote: > > > 2017-04-04 18:45 GMT+02:00 Esteban Lorenzano <[email protected]>: > >> > I think you are wrong because I check it carefully in Squeak and I >> found it on github https://github.com/OpenSmallta >> lk/opensmalltalk-vm/search?utf8=✓&q=primitiveFindSubstring&type=. >> >> >> still is not there, because is not the same primitive :) >> > > 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. > > > stable works because the bug ByteString>>#find… instead of String>>#find… > was introduced later. > >
FindStringPrimitiveTests.st
Description: Binary data
