I am new to Smalltalk and Squeak and am having some trouble using the
3.8.1 version of the Squeak Workspace. I originally wrote the
following:<br>
<br>
x := OrderedCollection new.<br>
x add: 'blue'.<br>
x do: [:a | Transcript show: a; cr]<br>
<br>
This works fine. I then changed it to this:<br>
<br>
x := Collection new.<br>
x add: 'blue'.<br>
x do: [:a | Transcript show: a; cr]<br>
<br>
Which produced an error on Collcetion>>add: as a subclass
Responsibility which seems correct. But when I change it back to
OrderedCollection I get an error that Collection>>do: is
subclass responsibility. However this is EXACTLY the same code as
before that worked. But now I have to exit the Workspace and
start another before the code works again. Am I doing something
wrong? <br>
<br>
Brent<br>