Hello,
Is this a bug or am I looking at this the wrong way ?
This usage of #collect:displayingProgress: works as expected:
#(a b c d e f g)
collect: [:each | (Delay forMilliseconds: 100) wait. each ]
displayingProgress: 'Working'
While this doesn't:
#(a b c d e f g)
collect: [:each | (Delay forMilliseconds: 100) wait. each ]
displayingProgress: [:each | 'Collecting ', each asString]
The similar #do:displayingProgress: does work.
It seems the index is passed into the progress block, not the element.
Maybe this is by design ?
Sven
_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project