[squeak-dev] replaceFrom:to:with:startingAt:
Bert Freudenberg
bert at freudenbergs.de
Mon Sep 22 20:00:03 UTC 2014
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.
==> #(1 2 3 4 5 6 7 8 9 10 8 9 10 8 9 10 8 9 10 8)
In my (buggy) VM it answered
==> #(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:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4142 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140922/5f8f3b2c/smime.bin
More information about the Squeak-dev
mailing list
|