<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Calibri Light";
        panose-1:2 15 3 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
        {mso-style-priority:1;
        margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" style="word-wrap:break-word">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hi Jaromir,</p>
<p><br>
</p>
<p>great questions, looking forward to a comprehensive answer, too. :-)</p>
<p><br>
</p>
<p>Ad 1: I suppose these instances were created prior to the introduction of FullBlockClosure and the SistaV1 bytecode set. It's funny to see they're still alive and appear to work.</p>
<p><br>
</p>
<p>Best,</p>
<p>Christoph</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>Von:</b> Squeak-dev <squeak-dev-bounces@lists.squeakfoundation.org> im Auftrag von Jaromir Matas <mail@jaromir.net><br>
<b>Gesendet:</b> Samstag, 11. Februar 2023 14:08:52<br>
<b>An:</b> Squeak Dev<br>
<b>Betreff:</b> [squeak-dev] Questions about FullBlock closures</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Two questions:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">1) When I do:</p>
<p class="MsoNormal">BlockClosure allInstances size "---> 66"</p>
<p class="MsoNormal">I always get 66 instances of BlockClosure, all of them probably related to the UI (as far as I can tell).
</p>
<p class="MsoNormal">Q: Why do we have those closures as instances of BlockClosure and not FullBlockClosure? (just trying to understand)</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2) When I do:</p>
<p class="MsoNormal">(FullBlockClosure allInstances select: [:each | each outerContext isNil]) size "---> 0"</p>
<p class="MsoNormal">I always get zero; this means there are no closures without the outer context set. However, the class comment says:</p>
<p class="MsoNormal">FullBlockClosure: [...] outerContext can be either a Context or nil.</p>
<p class="MsoNormal">Q: When would it make sense to use a FullBlockClosure with nilled outer context? No such situation in the system?</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I wonder: if we used a FullBlockClosure with outerContext == nil, how would then methods like Context >> home work? They assume 'closureOrNil outerContext' is not nil and would fail, if I understand correctly. Am I missing something/confused??</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many thanks for any help,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">best,</p>
<p class="MsoNormal">Jaromir</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNoSpacing"><span lang="CS">--</span></p>
<p class="MsoNoSpacing"><strong><span style="font-family:"Calibri Light",sans-serif;color:#333333;font-weight:normal">Jaromír Matas</span></strong><span style="font-family:"Calibri Light",sans-serif;color:#555555"><o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri Light",sans-serif;color:#2E75B6">mail@jaromir.net<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#8FAADC"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>