Re: the Visitor Design Pattern
- From: "Chung Leong" <chernyshevsky@xxxxxxxxxxx>
- Date: 29 Nov 2005 22:46:39 -0800
Oli Filth wrote:
> I think the OP has phrased this badly. He actually has an object
> passing this ($this) to a method in another object, which is hardly
> uncommon practice in most OO languages (e.g. registering a callback
> interface with a child object).
That's very different from object A calling a method of object B which
in turns invokes methods on object A now isn't it? What the OP
described can be more aptly called the prostitution design pattern.
Object J has a need that it cannot satisfy, so it visits object H to
get its private part operated upon. It's sick. It's immoral. Objects
should only play around with their own thingies.
.
- References:
- the Visitor Design Pattern
- From: FluffyCat
- Re: the Visitor Design Pattern
- From: Chung Leong
- Re: the Visitor Design Pattern
- From: Oli Filth
- the Visitor Design Pattern
- Prev by Date: Re: Domain Name of curent user
- Next by Date: ANNOUNCE: Last chance to register for OSDC 2005
- Previous by thread: Re: the Visitor Design Pattern
- Next by thread: R_PPC_REL24 relocation error with Apache
- Index(es):