<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 20 July 2017 at 00:16, Eliot Miranda <span dir="ltr"><<a href="mailto:eliot.miranda@gmail.com" target="_blank">eliot.miranda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Bert,<div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Wed, Jul 19, 2017 at 6:10 AM, Bert Freudenberg <span dir="ltr"><<a href="mailto:bert@freudenbergs.de" target="_blank">bert@freudenbergs.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><div>#[195 164] collect: [:c | c hex]</div><div>=> #[16 16]</div></div></div></blockquote><div><br></div></span><div>+1</div><div><br></div><div>at: index put: value </div><div><span class="m_-1257703689430962615gmail-Apple-tab-span" style="white-space:pre-wrap"> </span><primitive: 61> "try primitiveAtPut, convert value to integer if that fails and try again" </div><div><span class="m_-1257703689430962615gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>^ self byteAt: index put: value asInteger</div><div><br></div><div>is wrong.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)"><div><br></div><div>I think this should have raised an error. Tim?</div></div></div></blockquote><div><br></div></span><div>Why don't we simply remove the method? Tim may be using this in his benchmarks but I'm sure there's a better way.</div><div><br></div><div>But there's possibly another error here too.  Why is '16rC3' asInteger 16 instead of 195?</div><div></div></div><div class="gmail_extra"><br></div></div></div></blockquote><div>indeed. And that has nothing to do with bytearray method.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_extra"></div><br><div class="m_-1257703689430962615gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>
<br><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Best regards,<br>Igor Stasenko.</div>
</div></div>