<div><br></div> Wolfgang,<div><br></div><div> Thank you for reporting. Mario is fixing it. </div><div><br></div><div> On a related note, for Drools 5, for backward compatibility, we still allowed bindings in the middle of expressions. We were discussing if this should be disallowed from Drools 6 forward? Things like:</div>
<div><br></div><div>Person( $name : name == "Bob" || $alive : isAlive && ($age : age > 40 ) )</div><div><br></div><div> Things get quite complicated and a bit hard to read as expressions get more complex. It also clashes with the ternary operator ?:.</div>
<div><br></div><div> Any thoughts on retaining support for this kind of syntax or removing it? </div><div><br></div><div> Edson<br><br><div class="gmail_quote">On Mon, Feb 18, 2013 at 7:45 AM, Wolfgang Laun <span dir="ltr"><<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Below is a self-contained DRL which should not compile because the sum<br>
isn't a boolean expression. (Note that omitting "$x:" results in the<br>
correct diagnostic "predicate ... must be a boolean".)<br>
<br>
declare Foo<br>
a: double<br>
b: double<br>
end<br>
<br>
rule what<br>
when<br>
$c: Foo( $x: a + b )<br>
then<br>
System.out.println( "foo: " + $c );<br>
end<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>
</div>