<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">If you told the average person that it
      didn't copy first, I think they would have assumed it was the
      wrong behavior.<br>
      <br>
      If I told someone to do such a procedure using English words to
      numbers found 20 text-boxes, they would do it the "erroneous way,"
      I am pretty sure.<br>
      <br>
      L<br>
      <br>
      On 9/22/14, 1:34 PM, Bert Freudenberg wrote:<br>
    </div>
    <blockquote cite="mid:uLaF1o00V4G0d8d01LaHVu" type="cite">
      <pre wrap="">
On 22.09.2014, at 22:21, Ron Teitelbaum <a class="moz-txt-link-rfc2396E" href="mailto:ron@usmedrec.com">&lt;ron@usmedrec.com&gt;</a> wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">
</pre>
        <blockquote type="cite">
          <pre wrap="">From: Bert Freudenberg
Sent: Monday, September 22, 2014 4:00 PM

I just found out why PNG decoding was broken in SqueakJS [*]. Wouldn't
have believed that any code actually relied on the following behavior:

        | a |
        a := (1 to: 20) asArray.
        a replaceFrom: 11 to: 20 with: a startingAt: 8.

        ==&gt; #(1 2 3 4 5 6 7 8 9 10 8 9 10 8 9 10 8 9 10 8)

</pre>
        </blockquote>
        <pre wrap="">That's funky!  Hope it wasn't my code!  Seems wrong to not copy the array
before modifying it  (Like your buggy VM did).
</pre>
      </blockquote>
      <pre wrap="">
It's not a copy. It moved the numbers 8-17 to index 11. Which is what I erroneously had assumed to be the desired behavior.

- Bert -

</pre>
      <blockquote type="cite">
        <pre wrap="">Ron

</pre>
        <blockquote type="cite">
          <pre wrap="">In my (buggy) VM it answered

        ==&gt; #(1 2 3 4 5 6 7 8 9 10 8 9 10 11 12 13 14 15 16 17)

which apparently did not at all match what The Creators intended ;)

- Bert -

[*] specifically, #decompressBlock:with:
</pre>
        </blockquote>
        <pre wrap="">

</pre>
      </blockquote>
      <pre wrap="">

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Squeak from the very start (introduction to Squeak and Pharo Smalltalk for the (almost) complete and compleate beginner).
<a class="moz-txt-link-freetext" href="https://www.youtube.com/playlist?list=PL6601A198DF14788D&amp;feature=view_all">https://www.youtube.com/playlist?list=PL6601A198DF14788D&amp;feature=view_all</a> 

"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian Kernighan</pre>
  </body>
</html>