Bonjour,<br>« le soupçon d&#39;aspect avec les contrats » : en fait, c&#39;est plus qu&#39;un soupçons,  pas que pour les contrats :<br>dans les crochets, tu peux mettre n&#39;importe quel code lisaac, pas que des contrats ! Et c&#39;est hérité automatiquement par les fils (sauf si redéfinition, il faut alors ajouter les fameus «...»).<br>
<br>Hello,<br>You can have aspect programming with lisaac : everything put in [ ] before and after the code of a slot is automatically inherited by slot redefinition in children, while such parts ( the &quot;[] &quot; parts) are not redefined. If it is the case, you cadd add the famous &quot;...&quot; for inheriting code.<br>
<br>========================================<br><br>PARENT : <br>foo &lt;- <br>[<br>LOG.addlast &quot;this is not a contract&quot; ;<br>]<br>{/*cool stuff*/}<br>[<br>]<br><br>// -&gt; in the log you have :<br>
// &quot;this is not a contract&quot;<br><br>========================================<br><br>CHILD inherit PARENT : <br>foo &lt;-<br>{/*child cool stuff*/<br><br>// -&gt; in the log you have :<br>// &quot;this is not a contract&quot;<br>
<br>========================================<br><br>CHILD2 inherit PARENT :<br>foo &lt;-<br>[...<br>LOG.addlast &quot;I said : this is not a contract !&quot; ;<br>]<br>{/*cool stuff 2*/}<br><br>// -&gt; in the log you have :<br>

// &quot;this is not a contract&quot;<br>//&quot;I said : this is not a contract !&quot;<br><br>========================================<br><br>Ok, it&#39;s not really about GO, but it is for make things clear about [ ]  ;)  (and from what i read, we have got this, they do not, yepeeee)<br>
<br>Matthieu Herrmann<br><br>