On Tue, Apr 4, 2017 at 10:12 PM, Denis Kudriashov <dionisiydk@gmail.com> wrote:
>
>
> 2017-04-04 15:47 GMT+02:00 Esteban Lorenzano <estebanlm@gmail.com>:
>>
>> no it doesn't: squeak does not have that primitive, that���s why it does not fails :)
>
>
> I think you are wrong because I check it carefully in Squeak and I found it on github https://github.com/OpenSmalltalk/opensmalltalk-vm/search?utf8=���&q=primitiveFindSubstring&type=.

I believe Esteban's point Its not so much whether the VM has it
(since they are essentially the same VM + extra C-libs for Pharo)
but whether the Squeak Image is using it.

Squeak does use primitiveFindSubstring, but a difference is attached to ByteString rather than String.
That was added to Squeak 2015.05.01.�� Squeak String seems to have never used the primitive (since 2005).��
��
A diff shows some differences in implementation.. ��
�� ��https://www.diffchecker.com/CmBJZjB6
which anyway wouldn't account for John's observations.

cheers -ben