Below is a self-contained DRL which should not compile because the sum
isn't a boolean expression. (Note that omitting $x: results in the
correct diagnostic predicate ... must be a boolean.)
declare Foo
a: double
b: double
end
rule what
when
$c: Foo( $x: a + b )
then
Hi Wolfgang,
thanks for having reported this.
I fixed it in mvel and as usual the fix will be available with the next
mvel release.
Cheers,
Mario
On Sun, Feb 17, 2013 at 5:32 PM, Wolfgang Laun wolfgang.l...@gmail.comwrote:
Below is a fully self-contained DRL that compiles correctly but runs
Wolfgang,
Thank you for reporting. Mario is fixing it.
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:
Person( $name : name == Bob ||
I guess I've always spoken my mind in favour of a clean syntax, even
if it means a little extra typing. I dislike expressions with internal
bindings; the traditional binding at the start of an expression is
sufficient.
Cheers
Wolfgang
On 18/02/2013, Edson Tirelli ed.tire...@gmail.com wrote:
On 18 Feb 2013, at 18:38, Wolfgang Laun wolfgang.l...@gmail.com wrote:
I guess I've always spoken my mind in favour of a clean syntax, even
if it means a little extra typing. I dislike expressions with internal
bindings; the traditional binding at the start of an expression is
sufficient.
I
On 18/02/2013, Mark Proctor mproc...@codehaus.org wrote:
On 18 Feb 2013, at 18:38, Wolfgang Laun wolfgang.l...@gmail.com wrote:
I don't like nested bindings, I think it was there before due to backwards
compatibility.
5.1.1 permitted a binding to the field on which a constraint was based,