<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi Ignacio, <br>
</font></p>
<p><font size="4">Thanks for your feedback!</font><br>
</p>
<div class="moz-cite-prefix">Le 21/02/2023 à 13:25, Ignacio
Sniechowski via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAMCzT-Yw+MzBivD+Yecm+kxJCinAPbajjJ5-DaUHC32Th=6AYA@mail.gmail.com">
<div class="gmail_default"
style="font-family:monospace;font-size:large"><i>"<span
style="color:rgb(0,0,0);font-size:11pt;font-family:CMB10">Note.<span
class="gmail-Apple-converted-space"> </span></span><span
style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10">We
wrote earlier a string is a collection of characters. It is
true for byte string, where each character is encoded with a
byte – a byte string. However since 2023, the default string
format for Cuis-Smalltalk is Unicode (UTF-8) where each
character can be encoded with 1, 2, 3 or 4 bytes. Therefore
it is immutable and can not be indexed, it can be converted
as byte string with the message<span
class="gmail-Apple-converted-space"> </span></span><span
style="color:rgb(0,0,0);font-size:11pt;font-family:CMTT10">#asByteString</span><span
style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10">."</span></i></div>
<div class="gmail_default"
style="font-family:monospace;font-size:large"><span
style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10"><br>
</span></div>
<div class="gmail_default" style="font-size:large"><span
style="color:rgb(0,0,0);font-size:11pt"><font face="monospace">From
here I understand that the first example should not work,
unless -which is probably the case here- I'm
misunderstanding the part "Therefore, it is immutable and <b>can
not be indexed</b>, it can be converted..."</font></span></div>
<div class="gmail_default" style="font-size:large">
<div class="gmail-page" title="Page 27" style="color:rgb(0,0,0)">
<div class="gmail-layoutArea">
<div class="gmail-column">
<p><font face="monospace"><span style="font-size:9pt">'Hello'
at: 1<span class="gmail-Apple-converted-space"> </span></span><span
style="font-size:9pt">⇒<span
class="gmail-Apple-converted-space"> </span></span><span
style="font-size:9pt">$H<br>
'Hello' asByteString at: 5<span
class="gmail-Apple-converted-space"> </span></span><span
style="font-size:9pt">⇒<span
class="gmail-Apple-converted-space"> </span></span><span
style="font-size:9pt">$o</span></font></p>
</div>
</div>
</div>
</div>
</blockquote>
<p>Yep, the sentence is not really accurate. Will it be better as <span
style="color:rgb(0,0,0);font-size:11pt"><font face="monospace">"it
is immutable and <b>can not be indexed properly"?<br>
</b></font></span></p>
<p><span style="color:rgb(0,0,0);font-size:11pt"><font
face="monospace">And a better example to expose it:<br>
</font></span></p>
'sur' at: 3 $r <br>
'sûr' at: 3 $^ (unicode code point value 770)<br>
<p>Advice please, so I can update the book accordingly.<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAMCzT-Yw+MzBivD+Yecm+kxJCinAPbajjJ5-DaUHC32Th=6AYA@mail.gmail.com">
<div class="gmail_default" style="font-size:large"><span
style="color:rgb(0,0,0);font-size:11pt"><font face="monospace">The
other question is related to shortcuts in SmalltalkEditor, I
find the shortcut Cmd - " very useful for quoting results of
chunks of code in the workspace. This works when the
keyboard is in </font></span></div>
</blockquote>
<p>Is your host a Mac, I guess so as mentioned Cmd.</p>
<p>Could be an issue related to the VM. Om my Linux box with an us
international keyboard, I can comment chunk of code with the
keyboard combinaision Ctrl-Alt-Shift-["] (on my setup I have to do
Alt-Shift to access directly the " character, otherwise it will
try to compose with other character latter on.<br>
</p>
<p>May be take a look at your VM options.</p>
<p>Hilaire<span
style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10"></span><span
style="color:rgb(0,0,0);font-size:11pt;font-family:CMR10"><br>
</span></p>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://drgeo.eu">http://drgeo.eu</a>
<a class="moz-txt-link-freetext" href="http://blog.drgeo.eu">http://blog.drgeo.eu</a></pre>
</body>
</html>