<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 “index” (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 | <snip> ] to an ordered collection.<BR>
<BR>
Trying to file this in, I got a syntax error (which wasn’t highlighted, BTW), replacing eachIndex with text saying that “index” is already used in the class. Looking at SequenceableCollection’s withIndexDo:, which gets called eventually, it uses a block variable called index. Is this sort of “inlining” to be expected?<BR>
<BR>
Thanks,<BR>
<BR>
Fred Mannby</FONT>
</BODY>
</HTML>