If the &quot;documented behaviour&quot; is &quot;expression is evaluated once&quot; you cannot deviate silently and must flag an error. If you say that it is &quot;implementation defined&quot; you can<br>do what you like. Either way, you <i>must</i> document it ;-)<br>
<br>Wolfgang<br><br>On 7 April 2011 16:36, Mark Proctor &lt;<a href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt; wrote:<br>&gt; On 07/04/2011 07:15, Wolfgang Laun wrote:<br>&gt;<br>&gt; The main point I was trying to make here was that very complex expressions<br>
&gt; are very, very rare.<br>&gt;<br>&gt; An acceptable compromise would be to analyse what can be done without<br>&gt; busting a vein, and to flag anything anthing else as an error (&quot;expression<br>&gt; too complicated&quot;) and document the way around, presumably a user-defined<br>
&gt; variable where the user provides the type. And if the expressions is really<br>&gt; so complex, this might even imrove readability ;-)<br>&gt;<br>&gt; MVEL returns Object as the return type if it can&#39;t figure out what it is. So<br>
&gt; that could be possability. So on Object as the return type we use the expr<br>&gt; on each and every setter. Good idea. Do we need to throw an exception or<br>&gt; just default to re-evaluating the expr for each setter?<br>
&gt;<br>&gt; Mark<br>&gt;<br>&gt; Wolfgang<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; rules-dev mailing list<br>&gt; <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; rules-dev mailing list<br>
&gt; <a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>&gt;<br>&gt;<br>
<br>