
That the approach I m thinking about now.
But this way (including one object into one other) constraints you to have additional interface functions? Ok I know my question is not clear ;-) let's illustrate it with an example:
<snip> Yes, as far as I can see that will fly and indeed looks sensible for some use cases. If it is just a function you could also write it outside of any class, then call it from within your class with "this" as a parameter, in some cases.
If you feel I am lazy its true ;-) That's why I like to program, I make the machines work for me!
Of course you are, that's a virtue for programmers. Quite often the way to lazyness is through understanding. Well, the way to lazyness you can get away with is. Being lazy, making sweeping generalisations, theft, all great stuff ;-) Yours, Kas.