<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi Joel,</p>
<p>The issue is that </p>
<p> m1 [nil]</p>
<p>and</p>
<p> m2 []</p>
<p>both generate the same bytecodes. So making one of them
consistent makes the other one inconsistent.</p>
<p>Something similars happens between </p>
<p>n1<br>
7 == nil<br>
ifTrue: [ 8 ]<br>
ifFalse: [ 9 ].</p>
<p><br>
</p>
<p>and</p>
<p>n2<br>
7<br>
ifNil: [ 8 ]<br>
ifNotNil: [ 9 ].</p>
<p>I'm not sure what to do here, if anything at all. Opinions?</p>
<p>Thanks,</p>
<div class="moz-cite-prefix">On 2026-04-08 2:17 PM, Joel Camera via
Cuis-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKc5+ic1V+nEsvm1YxqvLn4miwAx-x0umtf+sq8h06Cu-8OT8w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi folks!</div>
<div>I've found a bug when printing a BlockNode with a nil
inside.</div>
<div>When you have a method like</div>
<div><br>
</div>
<div><font face="monospace">m1 [nil]</font></div>
<div><br>
</div>
<div>And in a Workspace print<font face="monospace"> </font></div>
<div><font face="monospace"> (Clazz>>#m1) methodNode</font> </div>
<div>you'll see that the code printed will be</div>
<div><font face="monospace"> m1<br>
[ ].</font></div>
<div><br>
</div>
<div>I attached a possible solution in <font face="monospace">BlockNode>>printStatemetsOn:indent:</font>
but, as I don't completely understand the code, perhaps the
solution could be different.</div>
<div><br>
</div>
<div>Cheers</div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div><br>
</div>
<a href="https://10pines.com/"
style="font-family:Roboto,Helvetica,Arial,sans-serif;font-size:medium"
target="_blank" moz-do-not-send="true"><img width="108"
src="https://10pines.github.io/email-signature/10pines-firma@2x.png"
style="margin-bottom:0.5em" moz-do-not-send="true"></a>
<h1 style="margin:0px;font-size:14px"><font
color="#999999">Joel Cámera</font></h1>
<h2
style="color:rgb(100,100,100);margin:0px 0px 1em;font-size:14px">Agile
Software Development</h2>
<h1 style="margin:0px;font-size:14px"><font
style="font-weight:normal" color="#666666">
<p style="margin:0px;font-size:12px">Alem 896, Floor
6, Buenos Aires, Argentina</p>
<p style="margin:0px;font-size:12px">+54 9 011 6091
3125</p>
</font></h1>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
</blockquote>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis.st">www.cuis.st</a>
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich</pre>
</body>
</html>