<div dir="ltr">Hi Nicola,<div> I'm sorry! I misunderstood your email! I read the subject with the word "bug" and then went directly to the image you pasted and I thought "it is not a bug, it is how it is intended to work" :-)</div><div> I agree that on this example, it would be better to see 'nil' than just nil because it is confusing but for sure there is a reason not to do it that way... I mean, Smalltalk is a mature system and for sure there is a reason for showing strings that way, sadly I do not know/recall that reason.<br></div><div> Anyway, it is not a bug. It would be interesting to see the behavior of the change Gerald suggested... maybe the reason for that "if" was only "performance" (why create a new string if we already have one) and if so, changing that behaviour would be an improvement from the UI point of view as you suggested.</div><div><br></div><div> Cheers!</div><div> Hernan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 7, 2021 at 5:01 AM Nicola Mingotti <<a href="mailto:nmingotti@gmail.com">nmingotti@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<br>
Hi Hernan,<br>
<br>
Speaking of representation if easy to slip talking into aesthetic
preferences, which is not my aim. ;)<br>
<br>
That representation made me mistake, I thought a bit about it, and
here is what i <br>
guess is the explanation. <br>
<br>
----- Workspace "Print It" interactions --------------<br>
nil. "=> nil "<br>
123. "=> 123 "<br>
'123'. "=> '123' "<br>
'nil'. "=> 'nil' "<br>
----------------------------------------------------<br>
<br>
This is what I expect to see also in the debugger, the programmer
view of the object. <br>
Instead I see kind of a simplified 'user' view, something that can
in ok in Transcript for example.<br>
But not in the debugger, where it is fundamental to distinguish 123
from '123' and nil from 'nil'.<br>
<br>
Bye<br>
Nicola<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div>On 8/6/21 7:56 PM, Hernan Wilkinson
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Nicola,
<div> I do not see a problem... the debugger is showing the
string nil and the inspector too. aStringRep is referencing a
string, that string is 'nil' ... </div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Fri, Aug 6, 2021 at 1:14 PM
Nicola Mingotti via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st" target="_blank">cuis-dev@lists.cuis.st</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div> <br>
<font size="+1"><font face="monospace">Hi guys,<br>
<br>
I hit a stupid bug today ... to find it was nasty, i
think because<br>
the debugger does not show what (at least I) would
expect. <br>
<br>
Please see the attached picture here:<br>
<a href="https://pasteboard.co/KeEwgAy.png" target="_blank">https://pasteboard.co/KeEwgAy.png</a><br>
<br>
If you look at the debugger bottom right pane you think<br>
that 'aStringRepr' is nil, right? Well, it is not so,<br>
If you inspect it, see inspector in the middle of the
screen,<br>
you see it actually is 'nil', that is a String
containing a 3 letter value.<br>
<br>
This happens also for numbers, if they are inside
Strings the debugger<br>
does not show eg: '123', but 123. That is some kind of
"print representation".<br>
<br>
I think this is very much undesirable and an unexpected
behavior,<br>
at least for a beginner;)<br>
<br>
bye<br>
Nicola<br>
<br>
<br>
<br>
</font></font> </div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr"><span style="font-size:xx-small;border-collapse:collapse">
<div style="font-size:small"><a href="https://10pines.com/" style="font-family:Roboto,Helvetica,Arial,sans-serif;font-size:medium" target="_blank"><img src="https://10pines.github.io/email-signature/10pines-firma@2x.png" style="margin-bottom: 0.5em;" width="108"></a><span style="color:rgb(0,0,0);font-family:Roboto,Helvetica,Arial,sans-serif;font-size:medium"></span>
<h1 style="margin:0px;font-size:14px">Hernán Wilkinson</h1>
<h2 style="margin:0px 0px 1em;font-size:14px;color:rgb(100,100,100)">Software
Developer, Teacher & Coach</h2>
<p style="margin:0px;color:rgb(100,100,100);font-size:12px">Alem
896, Floor 6, Buenos Aires, Argentina</p>
<p style="margin:0px;color:rgb(100,100,100);font-size:12px">+54
11 6091 3125</p>
<p style="margin:0px;color:rgb(100,100,100);font-size:12px">@HernanWilkinson</p>
</div>
</span></div>
</div>
</blockquote>
<br>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span style="font-size:xx-small;border-collapse:collapse"><div style="font-size:small"><a href="https://10pines.com/" style="font-family:Roboto,Helvetica,Arial,sans-serif;font-size:medium" target="_blank"><img width="108" src="https://10pines.github.io/email-signature/10pines-firma@2x.png" style="margin-bottom: 0.5em;"></a><span style="color:rgb(0,0,0);font-family:Roboto,Helvetica,Arial,sans-serif;font-size:medium"></span><h1 style="margin:0px;font-size:14px">Hernán Wilkinson</h1><h2 style="margin:0px 0px 1em;font-size:14px;color:rgb(100,100,100)">Software Developer, Teacher & Coach</h2><p style="margin:0px;color:rgb(100,100,100);font-size:12px">Alem 896, Floor 6, Buenos Aires, Argentina</p><p style="margin:0px;color:rgb(100,100,100);font-size:12px">+54 11 6091 3125</p><p style="margin:0px;color:rgb(100,100,100);font-size:12px">@HernanWilkinson</p></div></span></div></div>