That the approach I m thinking about now.<br><br>But this way (including one object into one other) constraints you to have additional interface functions?<br>Ok I know my question is not clear ;-) let's illustrate it with an example:<br>
<br>class A{ void fun do_stuff() { /* do stuff ....*/  } }<br><br>If I want to have the same do_stuff functionality in another class, if I extend it, I have nothing to do.<br>class B extends A {}  // B Will automatically have the do_stuff functionality<br>
<br>But if I include it, I have to do:<br>class B { A a; // sort of include<br>              fun void do_stuff() {a.do_stuff();} /// This is the additional interface I told about in my question<br>}<br><br>Then I will be able to do:<br>
B b;<br>b.do_stuff();<br><br>Ok it s just one line of code in this example but it can be much more if you have several functions and several class extensions.<br><br>If you feel I am lazy its true ;-) That's why I like to program, I make the machines work for me!<br>
<br>Ju<br><br><br><br><br><div class="gmail_quote">2012/10/5 Kassen <span dir="ltr"><<a href="mailto:signal.automatique@gmail.com" target="_blank">signal.automatique@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, Oct 05, 2012 at 02:59:16PM +0200, Julien Saint-Martin wrote:<br>
> Hi Kassen,<br>
><br>
> Ok, thank you for your response.<br>
> No problem, you don't have to be sorry. I survived ten years programming<br>
> without objects so I will find an other solution ;-)<br>
<br>
</div>Personally I never felt the need to extend multiple things at once, to<br>
be honest, I tend more towards having one big object include several<br>
smaller ones. I could see how it could save on the copy-pasting and<br>
keeping track of where you copy-pasted when you edit one case.<br>
<br>
Oh, well...<br>
<div class="HOEnZb"><div class="h5">Kas.<br>
_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
</div></div></blockquote></div><br>