<p></p>
<p dir="auto">In modern Squeak image, literals are protected by immutability flag, and the primitive correctly check for immutability of receiver and fails. The example is thus not reproducible anymore in Squeak.</p>
<p dir="auto">We also fail to reproduce if we use asSymbol rather than a literal:</p>
<pre><code>| s | s := 'TEST123' asSymbol.
s translateToLowercase.
s -> (Symbol findInterned: s)
</code></pre>
<p dir="auto">because <code>Symbol>>intern:</code> is also protecting the symbol by sending <code>beReadOnlyObject</code>.</p>
<p dir="auto">The fact that the Symbol is not interned: is not a VM problem, it's an implementation detail at image side.<br>
I thus suggest to close this issue which is now correctly guarded at image side.</p>
<p dir="auto">Cuis might still suffer from the problem, but let me suggest that Cuis do the right thing and protect Symbols from mutation too.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/561#issuecomment-1047240393">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEWZ6DY6D4C3WXDPJHC3U4KU3DANCNFSM43LARFBA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AIJPEW474T6DQD4VSHA3PBLU4KU3DA5CNFSM43LARFBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHZVZ5SI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><OpenSmalltalk/opensmalltalk-vm/issues/561/1047240393</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/561#issuecomment-1047240393",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/561#issuecomment-1047240393",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>