Hi Tim. Sorry you crashed your image. I owe you an apology, because when I looked at the code for LinkedList, I thought there was something odd, but I dismissed it thinking ' they must have thought of that!' I think the problem is that LinkedList inherits #after: from SequenceableCollection, meaning it uses #atIndex: rather than following the links. Even so I don't see why it loops; surely going outside the range of the index should be a known error condition. Anyway, between us we may have discovered a bug in LinkedList. Do you feel stirred up enough to raise it as an issue? Peter Tim Mackinnon wrote
Hi Peter - yes of course you are right that its malleable, I guess Iâm often suprised about the things we leave out and then discover weird things weâve put in.
I had a quick look at LinkedList (I should have thought of that) - I might be able to do something with that (and this is now more out of curiosity) - but gosh its an easy way to crash your image. Having linked the first to the last, and then tried a quick: list after: $n - Iâm now guessing Iâm stuck in an infinite loop that even Cmd . wonât break out of!!!! ouch.
Tim
On 29 Mar 2019, at 10:20, Peter Kenny <
peter@.co
> wrote:
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html <http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html>
-- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html