Yes.
Visitor is a convenient pattern to perform a computation over each element of a 
recursive data structure. 
This pattern works well for trees. You need to pay attention to cycle when 
using it on a graph. This might be expensive if you have a large graph and you 
use a set to keep track of the element you run over.

Do you want to do this on any object of the image?

Alexandre


On 2 Sep 2010, at 10:36, Martin Dias wrote:

> Hi,
> 
> We want to do some processing over the graph of object references.
> 
> Do you recommend an implementation of visitor pattern to iterate object 
> instance variables?
> 
> Best regards,
> Martin and Tristan
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to