<p></p>
<p dir="auto">To reproduce, in Squeak, do this:</p>
<div class="highlight highlight-source-smalltalk"><pre><span class="pl-s"><span class="pl-pds">'</span>aaa<span class="pl-pds">'</span></span> copy <span class="pl-c1">tryPrimitive:</span> <span class="pl-c1">64</span> <span class="pl-c1">withArgs:</span> {<span class="pl-c1">2</span>. $b asciiValue}; <span class="pl-k">yourself</span></pre></div>
<p dir="auto">Expected behavior: The primitive fails, and the string remains <code class="notranslate">aaa</code>. This is also what we are used to from primitive 61 (primitiveAtPut).</p>
<p dir="auto">Actual behavior: The primitive fails, but the string slot has been changed to <code class="notranslate">Character null</code>.</p>
<p dir="auto">(By the way, TruffleSqueak and SqueakJS show my expected behavior.)</p>
<p dir="auto">Maybe there is some clever reasoning behind it, but a primitive that fails should not have any other side effects from my first impression. Is this a bug?</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/636">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW274LNT7YYIJD4DKDTVMECWTANCNFSM5XE4MJRQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AIJPEW5ODIVCPFOMQQJUL6TVMECWTA5CNFSM5XE4MJR2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4SUSBGVQ.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/636</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/636",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/636",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>