Hi all<div><br>&nbsp;</div><div>Just a quick couple of questions (nothing serious).</div><div><br>&nbsp;</div><div>I was going through the SBE and came up on OrderedCollections. I tried the following:</div><div><br>&nbsp;</div><div><div>
c :=&nbsp;OrderedCollection&nbsp;newFrom: { 1. 5. 8. 45. 23. 3. 20 }.</div><div>String newFrom: c</div><div><br>&nbsp;</div><div>but I get the following: &#39;Error: Improper store into indexable object&#39;. What I was expecting was:</div>
<div><br>&nbsp;</div><div>1584523320 (because in Ruby world I can do something like this:)</div><div><br>&nbsp;</div><div><div>irb(main):001:0&gt; [1,2,3,4,5,6,7,8].to_s</div><div>=&gt; &quot;12345678&quot;</div><div>irb(main):002:0&gt;</div>
</div><div><br>&nbsp;</div><div>I was at least expecting something weird but not an error.</div><div><br>&nbsp;</div><div>I eventually figured that it was because I was using Ints instead of Characters because this works fine:</div>
<div><br>&nbsp;</div><div>str :=&nbsp;OrderedCollection&nbsp;newFrom: { $a. $g. $t. $e }.</div><div>str as: String</div><div><br>&nbsp;</div><div>So, the question is why do I get the error? Shouldn&#39;t String be able to convert any object into a String representation? In Rubylandwhere that&#39;s all fair game but I get the feeling that you can&#39;t just do that since it is String doing the conversion by (possibly) sending a message that OrderedCollection does not support. If that&#39;s the case, how do you do it?</div>
<div><br>&nbsp;</div><div>The second question is kinda stupid. I was playing around with the browser in Squeak (I had just learned how to open Morphs in the World. Yay!) and tried this:</div><div><br>&nbsp;</div><div><div>anEllipse := EllipseMorph new.</div>
<div>anEllipse defaultColor.</div><div>anEllipse openInWorld</div><div><br>&nbsp;</div><div>anEllipse color: Color red</div><div>anEllipse borderWidth: 10</div><div>anEllipse height: 100</div></div><div>100 timesRepeat: [randomNo := 100 atRandom. anEllipse height: randomNo. anEllipse borderWidth: anEllipse borderWidth + 1 ]</div>
<div><br>&nbsp;</div><div>It did work but it did the moves all at once. At first I thought that it was just doing it so quick I couldn&#39;t see but I increased the number of iterations but all that did was hang the UI for a sec or so and then leave the ellipse at a random location (as expected). I guess I was trying to animate it but the UI doesn&#39;t update. Is it a block thing? That is, is it that the block is evaluated and then the UI is updated? Just curious. I&#39;m probably trying to do this in a rather silly way.</div>
<div><br>&nbsp;</div><div>Anyhoo, that&#39;s it. I&#39;m loving it so far and I&#39;ve ordered the Seaside book from Lulu. Even if I don&#39;t ever get to use this officially in my work, I&#39;m glad I found it because I will now be able to write tools very quickly and easily AND move them between platforms with a quick scp or anything else for that matter..</div>
<div><br>&nbsp;</div><div>Sven</div></div>