[Newbies] Squeak Workspace stuck in walkback

Herbert König herbertkoenig at gmx.net
Sun Jan 21 08:37:33 UTC 2007


Hello Brent,

BM> Which produced an error on Collcetion>>add: as a
BM> subclassResponsibility which seems correct.  But when I change it
BM> back toOrderedCollection I get an error that Collection>>do: 
BM> issubclass responsibility.  However this is EXACTLY the same code
BM> asbefore that worked.  But now I have to exit the Workspace
BM> andstart another before the code works again.  Am I doing
BM> somethingwrong?  

I'm not experienced enough to really reply to this, but:

Something sticks to an old (Collection) incarnation of X.
If you change your code like this:

| x |
x := OrderedCollection new.
x add: 'blue'.
x do: [:a | Transcript show: a; cr]

making x local to the running code, the problem goes away.

First I thought the doIt would stick to x but

Smalltalk forgetDoIts

didn't help either.

So now I'm as curious as you to a reply of someone who really knows
:-)


Cheers

Herbert                            mailto:herbertkoenig at gmx.net



More information about the Beginners mailing list