Subject: Re: Question about COM3360
From: Karl Lieberherr (lieber@ccs.neu.edu)
Date: Mon Nov 06 2000 - 14:08:24 EST
Hi Prasenjit:
yes, I have written traversal code on visitors when the visitors
were nested.
We tried to follow a uniform policy: all classes are defined in the
class dictionary.
Sometimes it is useful to print a visitor object.
But I agree with you: the rule violates a bit the goal
to minimize tangling.
When you add a behavior it is not so nice that you also
have to change the cd.
-- Karl
>From adakp@ccs.neu.edu Sat Nov 4 15:16:23 2000
>Date: Sat, 4 Nov 2000 15:16:22 -0500 (EST)
>From: Prasenjit Adak <adakp@ccs.neu.edu>
>To: Karl Lieberherr <lieber@ccs.neu.edu>
>Subject: Question about COM3360
>MIME-Version: 1.0
>
>Prof. Lieberherr,
>
>Why do we need to include the Visitor classes (and also Main) in the
>class-dictionary?
>
>Would we ever be traversing from one visitor to another or from "Main"
>(which just invokes the functionality provided, and should not really be
>part of the object structure) to any other object?
>
>"demeterJ test" also doesn't seem to require it.
>
>Thanks.
>Prasenjit
>
This archive was generated by hypermail 2b28 : Mon Nov 06 2000 - 14:08:39 EST