[Pharo-project] #collect:displayingProgress:
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
Turned into http://code.google.com/p/pharo/issues/detail?id=2984 On 06 Sep 2010, at 12:07, Sven Van Caekenberghe wrote:
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 Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Thanks this is an important reflex because of the volume and variety of issue.
Turned into http://code.google.com/p/pharo/issues/detail?id=2984
There is fixed in the last version of NewInspector. Fréd ---- Frédéric Pluquet Université Libre de Bruxelles (ULB) Assistant http://www.ulb.ac.be/di/fpluquet On Mon, Sep 20, 2010 at 8:24 PM, Stéphane Ducasse <stephane.ducasse@inria.fr
wrote:
Thanks this is an important reflex because of the volume and variety of issue.
Turned into http://code.google.com/p/pharo/issues/detail?id=2984
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (3)
-
Frederic Pluquet -
Stéphane Ducasse -
Sven Van Caekenberghe