[BUG] doWithIndex: problem in 3.0final

Bob Arning arning at charm.net
Sun Feb 25 03:27:14 UTC 2001


On Sat, 24 Feb 2001 18:53:57 -0800 Claes-Fredrik Mannby <cf at mannby.com> wrote:
>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.
>
>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?

Fred,

No it's not. Perhaps if you could create a change set with the class definition and the one method and append that to your email, a more helpful answer could be provided.

Cheers,
Bob





More information about the Squeak-dev mailing list