[Zope] Acquisition Problem ?
Dieter Maurer
dieter@handshake.de
Tue, 13 Mar 2001 23:03:31 +0100 (CET)
Richard Moon writes:
> But what we have here is an object, a dtml method, which behaves completely
> differently depending on how it is referenced.
>
> Can anyone tell me why that is a good thing ? To me it seems a very bad thing.
I like it very much!
It allows to use a single object in different contexts
and to have its behaviour adapted to these contexts.
In fact, the behaviour is not completely different:
it is still controlled by the same code/algorithm.
But the different contexts lead to slightly different
behaviour, influenced by the context.
You have similar effects in object orientend languages
with dynamic method resolution.
Dieter