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:[EMAIL PROTECTED]

_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to