<p></p>
<p dir="auto">Ah, of course.  I understand now.  Setting to an integer has disastrous consequences for the vm.  That must be prevented.</p>
<p dir="auto">Possibly by coincidence Jaromir brought up the issue on squeak-dev, suggesting</p>
<pre lang="Context>>privSender:" data-meta="aContextOrNil" class="notranslate"><code class="notranslate"> 
        sender := aContextOrNil ifNotNil: [aContextOrNil asContext]```

which I think is good.  I would validate by sending asContext in the relevant places.  If necessary we can introduce something only understood by Context and not by BlockClosure, eg raiseErrorIfNotContext, which I suppose could be implemented in Object to raise an error.

</code></pre>

<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/654#issuecomment-1251223035">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW6CLYIIWOQBDNCGNFDV7CFB5ANCNFSM6AAAAAAQPD7WBU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AIJPEW5ALBEZOKMCVIMPY7LV7CFB5A5CNFSM6AAAAAAQPD7WBWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSKSQS7W.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/654/1251223035</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/654#issuecomment-1251223035",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/654#issuecomment-1251223035",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>