On Jul 24, 2004, at 19:26 Uhr, Robert Klemme wrote:

>
> "Florian Weber" <csshsh / structbench.com> schrieb im Newsbeitrag
> news:6F425BDB-DCFB-11D8-9B88-000A95BD142E / structbench.com...
>> hi!
>>
>> if i use a proxy to wrap a object, is there a way to allow that calls
>> from the wrapped object to a method in the wrapped object go via
>> the proxy.
>>
>> example:
>>
>> proxy#foo calls object#foo calls proxy#bar calls object#bar
>>
>> instead of
>>
>> proxy#foo calls object#foo calls object#bar
>
> No way other than modifying the wrapped instance.  The wrapper knows 
> the
> wrapped instance but not the other way round.  You might consider using
> inheritance in this case - if that works in your scenario.  Or use a
> completely different strategy.

what ways via modifications would work? besides using inheritance?