[squeak-dev] ByteArray>>at:put:

Eliot Miranda eliot.miranda at gmail.com
Wed Jul 19 21:16:20 UTC 2017

Hi Bert,

On Wed, Jul 19, 2017 at 6:10 AM, Bert Freudenberg <bert at freudenbergs.de>

> #[195 164] collect: [:c | c hex]
> => #[16 16]


at: index put: value
<primitive: 61> "try primitiveAtPut, convert value to integer if that fails
and try again"
^ self byteAt: index put: value asInteger

is wrong.

> I think this should have raised an error. Tim?

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.

But there's possibly another error here too.  Why is '16rC3' asInteger 16
instead of 195?

best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20170719/757a278a/attachment.html>

More information about the Squeak-dev mailing list