[BUG] doWithIndex: problem in 3.0final
Claes-Fredrik Mannby
cf at mannby.com
Sun Feb 25 02:53:57 UTC 2001
My apologies if this has been discussed already, but I had the following
problem filing in a change set into the 3.0final image:
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?
Thanks,
Fred Mannby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010224/b67c1451/attachment.htm
More information about the Squeak-dev
mailing list
|