<HTML>
<HEAD>
<TITLE>[BUG] doWithIndex: problem in 3.0final</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana">My apologies if this has been discussed already, but I had the following problem filing in a change set into the 3.0final image:<BR>
<BR>
I had a class with a an instance variable named &#8220;index&#8221; (very generic I know, but in the context, it makes perfect sense), and in a method on that class I was sending doWithIndex: [:eachMumble eachIndex | &lt;snip&gt; ] to an ordered collection.<BR>
<BR>
Trying to file this in, I got a syntax error (which wasn&#8217;t highlighted, BTW), replacing eachIndex with text saying that &#8220;index&#8221; is already used in the class. Looking at SequenceableCollection&#8217;s withIndexDo:, which gets called eventually, it uses a block variable called index. Is this sort of &#8220;inlining&#8221; to be expected?<BR>
<BR>
Thanks,<BR>
<BR>
Fred Mannby</FONT>
</BODY>
</HTML>