On 28 July 2011 23:36, menada <span dir="ltr">&lt;<a href="mailto:eujenia@gmail.com">eujenia@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Because the fact is not already in the kbase (so i can&#39;t modify it and then<br>
insert it).<br></blockquote><div><br>(1)<br>X x = new X(...);<br>x.setA(...);...x.setZ(...);<br>insert( x );<br><br>(2)<br>X x = new X(...);<br>insert( x );<br>modify( x ){ setA(...),..., setZ(...) }<br><br>These two sequences are logically equivalent - you&#39;ll have equal objects and facts x at the end. But (1) is decidedly preferred because it is much less work for the engine. Consider: the &quot;insert&quot; in (2) sends it on one direction and then the modify instructs it otherwise.<br>
<br>-W<br><br></div></div>