hi,
ok, passing by name is one way to go, it is a matter of taste.
Of course I did not mean duplicating. Your logic may live in one instance of [logic] connected (locally or globally) to [blah] and another instance of [logic] connected to [ding]. But maybe using [logic blah] and [logic ding] could sometimes suit better (depending on taste).
Krzysztof
pix wrote:
well if you can imagine an abstraction with a lot of complicated logic wrapping around some object, but that object could possibly be exchanged with other objects to change the behaviour in some interesting way, then this becomes handy.
if you wanted to do this "in the main window" you would have to duplicate all of this logic.