[Vm-dev] [OpenSmalltalk/opensmalltalk-vm] primitiveTranslateStringWithTable modifies symbols in place, it should be reserved for non-literal strings only (#561)

fmateoc notifications at github.com
Wed Apr 21 19:52:48 UTC 2021

After making sure a string was not interned, ( "Symbol findInterned: 'test123'" returned nil ), I did

 | s | s := #TEST123.
 s translateToLowercase.
 s -> (Symbol findInterned: s)

and the resulting s is a Symbol and it is not interned.
To make sure that the primitive is invoked (and not its fallback code), put a halt in ByteString class >> #translate:from:to:table:

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20210421/cd9b0769/attachment.html>

More information about the Vm-dev mailing list