On Fri, 22 Dec 2017, Clément Bera wrote:
Hi all,
snip
1. translate: aString from: start to: stop table: tableto plain Smalltalk code.
This primitive seems to be unused. I suggest we move it from a primitive
That primitive is currently used to convert ByteStrings to lower and upper case, and it's also used to convert between cr and lf line endings. The primitive fails in Pharo for some reason, but it's still used in the 6.0 image I have.
It works properly in Squeak and Cuis.Indeed.Also, the primitive is a lot faster for non-jit VMs. E.g. the Stack interpreter for iOS, where no JIT compiler is allowed.We should keep those primitives, in some form.
One idea would be to rewrite MiscPrimitivePlugin as a plain plugin, and only keep the few primitives that are not moved elsewhere.
- Bert -