<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi Barry, <br>
</font></p>
<p><font size="4">You are asking at the right place!</font><br>
</p>
<div class="moz-cite-prefix">Le 11/01/2023 à 13:04, Barry Perryman
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAKDUZVi=9T6hTDb0y63T5SiDaOSUOGHeURCZsZcyW49rqZoGfw@mail.gmail.com"><br>
I'm slowly working through The Cuis-Smalltalk book, and playing
around with the system </blockquote>
<p>Cool! It is always rewarding to read about people using The Cuis
book to learn Smalltalk.<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAKDUZVi=9T6hTDb0y63T5SiDaOSUOGHeURCZsZcyW49rqZoGfw@mail.gmail.com">and
I've come across a couple of small issues - I've tested these with
the latest code from git on both an intel mac and a 64-bit
raspberry pi and I've even compared to squeak where I think it
makes sense.<br>
<br>
The first one is the when I set the size of the GUI elements to
something other than default I can see a gap on the left and the
right hand sides between the top of the window and the title bar,
I've attached a small screen shot so you can see what I'm </blockquote>
<p>I think we all observed that. It is likely a rounding error in
the title bar morph revealed when VectorGraphics was set as
default in Cuis. I will try to look at it. But you don't need to
worry about it.<br>
</p>
<br>
<blockquote type="cite"
cite="mid:CAKDUZVi=9T6hTDb0y63T5SiDaOSUOGHeURCZsZcyW49rqZoGfw@mail.gmail.com">The
second one is I don't seem to be able to make a LinkedList. I get
a message not understood. So in squeak if I do an inspect on the
following it works:<br>
<br>
(LinkedList new) add: 1; add: 2; add: 3; yourself.<br>
</blockquote>
<p>To a LinkedList isntance you can only add object kind of Link.
You can add any sort of object. For example:</p>
<p>LinkedList new<br>
add: (Link new);<br>
add: (Link new);<br>
yourself</p>
<p>However Link is an abstract class not capable to hold data for
the link. It only provides the mechanism to navigate to the next
link in the LinkedList (#nextLink message)</p>
<p>So to make anything useful with LinkedList, you must subclass
Link and add the appropriate attributes to hold the data you want
for a Link.</p>
<p>For example in DrGeo, to sample a Locus I use a LinkList and each
sample of the Locus is a sort of Link with the appropriate
attributes related to a sample, some of the attributes are only
cache for optimization:</p>
<p><font face="monospace" color="#a61d40">Link subclass:
#DrGLocusSample<br>
instanceVariableNames: 'abscissa pointScreen pointWorld
offScreen exist'<br>
classVariableNames: ''<br>
poolDictionaries: ''<br>
category: 'DrGeo-Item-Views'</font><br>
</p>
<blockquote type="cite"
cite="mid:CAKDUZVi=9T6hTDb0y63T5SiDaOSUOGHeURCZsZcyW49rqZoGfw@mail.gmail.com">Finally
the Cuis-Smalltalk book says that the following will return false,
it does in squeak but in Cuis it returns true.<br>
<br>
'hello' == 'hello' copy<br>
</blockquote>
<p>Good catch! Thanks. I think it is a bug related to the recent
adoption of Unicode as the default string representation in Cuis
because :</p>
<p><font face="monospace">(String withAll: 'hello') == (String
withAll: 'hello') copy<br>
=> false<br>
</font></p>
<p>Adoption of Unicode as the default string representation in Cuis
is an important change impacting many area and external package of
Cuis. So it mY take a few cycles to get it bug free but it is a
big win in the long term.<br>
</p>
<p>Thanks a lot for your detailed reports.</p>
<p>Hilaire<br>
</p>
<blockquote type="cite"
cite="mid:CAKDUZVi=9T6hTDb0y63T5SiDaOSUOGHeURCZsZcyW49rqZoGfw@mail.gmail.com"><br>
Regards<br>
<br>
Barry</blockquote>
<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>