Have you looked at the node-processing example?  How would you solve it with 
interface/strategy?

How can those be used to solve the problem if the action to be taken by the 
code being authored depends on the actual runtime class of the node?  (The 
restriction that you can't change the code for the subject class hierarchy 
prevents a callback-based solution; that's what I might have suggested 
otherwise.)

At 06:29 AM 7/18/2006, Frans Bouma wrote (in part)
>> > I think what you're looking for is a Visitor.
>
>        A couple of people, including yours truly, have suggested 
> interfaces/strategy pattern-esk approaches. Have you thought about these too? 
> Your problem is typical for that pattern to solve.
>
>                FB


J. Merrill / Analytical Software Corp

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to